Implementing graceful-close in Haskell network library
One of the nice bits about HTTP 1.0 and 1.1 was the strong connection direction semantics, avoiding the classic TCP deadlock scenarios seen in bidirectional protocols. But now HTTP/2 supports bidirectionality, so HTTP/2 servers need to be more careful about how they close connections, as this blog post describes — tl;dr: shutdown(SHUT_WR) .
(tags: http networking protocols http2 bidirectional-protocols tcp ip)