status-im / nim-chronos

Chronos - An efficient library for asynchronous programming
https://status-im.github.io/nim-chronos/
Apache License 2.0
362 stars 51 forks source link

Disable HTTP/1.1 pipelining support and add flag to enable it. #387

Closed cheatfate closed 1 year ago

cheatfate commented 1 year ago

While investigating https://github.com/status-im/nimbus-eth2/issues/4872 i found that different implementation of HTTP servers acts differently while HTTP/1.1 pipeline is used. After reading https://daniel.haxx.se/blog/2019/04/06/curl-says-bye-bye-to-pipelining/ i decided to add the flag which will totally disable HTTP/1.1 pipelining mechanism for chronos HTTP client.