inhabitedtype / faraday

Serialization library built for speed and memory efficiency
Other
134 stars 20 forks source link

faraday-lwt-unix: handle EPIPE the same way as BADFD is handled #67

Closed hannesm closed 3 years ago

hannesm commented 3 years ago

The socket is closed for writing

This fixes an issue when a HTTP/AF + Opium server receives a request, where the requestor closes the TCP connection before the response has been sent completely. Note that the server in question ignores SIGPIPE (which is then translated to an EPIPE): Sys.(set_signal epipe Signal_ignore)

//cc @aantron @reynir

seliopou commented 3 years ago

Thanks! I'll cut a release today.