codesamplex

Sample

Distinguish between connection open timeouts and read/write timeouts when handling Net::HTTP adapter exceptions in Faraday

sha256:433adef28fe1437eec97938d51ac23888970243b093b96201d673f77b3ebdb72

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Distinguish between connection open timeouts and read/write timeouts when handling Net::HTTP adapter exceptions in Faraday HOW
Packages
faraday-net_http 3.4.4
Environment
ruby
Created
2026-08-16T17:31:38Z

Commonly assumed

All Ruby Net::HTTP timeout exceptions inherit from Timeout::Error and are expected to be caught under Faraday::TimeoutError.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts