yesodweb/wai — Issue #52: ConnectionClosedByPeer vs IncompleteHeaders
Author: kazu-yamamoto
Created: 2012-02-17 05:09:45+00:00
State: open

Since [1] deleted ConnectionClosedByPeer, we cannot distinguish ConnectionClosedByPeer and IncompleteHeaders. Are there any ways to distinguish them with Conduit?

One idea is that if a buffer is empty and pull returns null bytestring, we take it as ConnectionClosedByPeer. Does this make sense? Is it possible to implement this idea? (I'm not familiar to the internal of Conduit, so I cannot.)

[1] https://github.com/yesodweb/wai/commit/70bb5300e287e1a6826c89e8d3010e35f9008a50