nickva commented on PR #4729: URL: https://github.com/apache/couchdb/pull/4729#issuecomment-1689048717
Interesting find @iilyak! One worry about the `gen_tcp:unrecv/2` function is that it may mess up the HTTP protocol stream in case of any pipelining. We'd be reading data out of band and then putting it back into the erlang's TCP from a different process than mochiweb's request client. At least with TCP_INFO at worse we'd get an unknown state or unsupported OS and we'd just do what we did before without the danger of messing up the HTTP TCP stream. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
