Skip to content

Commit

Permalink
Document FailedConnectionException better
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Apr 15, 2015
1 parent 6e247b3 commit 0e1a521
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion http-client/Network/HTTP/Client/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,17 @@ data HttpException = StatusCodeException Status ResponseHeaders CookieJar
| HandshakeFailed
| OverlongHeaders
| ResponseTimeout
| FailedConnectionException String Int -- ^ host/port
| FailedConnectionException String Int
-- ^ host/port
--
-- Note that in old versions of http-client and
-- http-conduit, this exception would indicate a failed
-- attempt to create a connection. However, since (at least)
-- http-client 0.4, it indicates a timeout occurred while
-- trying to establish the connection. For more information
-- on this, see:
--
-- <https://github.com/snoyberg/http-client/commit/b86b1cdd91e56ee33150433dedb32954d2082621#commitcomment-10718689>
| FailedConnectionException2 String Int Bool SomeException -- ^ host/port/secure
| ExpectedBlankAfter100Continue
| InvalidStatusLine S.ByteString
Expand Down

0 comments on commit 0e1a521

Please sign in to comment.