hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Start http1 header read timeout even when 0 bytes are read

Open jeromegn opened this issue 1 year ago • 1 comments

As mentioned in https://github.com/hyperium/hyper/pull/2675#issuecomment-1666309018, the timeout didn't apply if no bytes were written yet.

This moves the start of the timeout's polling before the check for an empty buffer.

jeromegn avatar Sep 05 '23 21:09 jeromegn

FWIW, this sounds very similar to this other PR, which I paused because of the follow comment: https://github.com/hyperium/hyper/pull/3185#issuecomment-1489170787.

seanmonstar avatar Sep 06 '23 14:09 seanmonstar