Update the way read header is handled#80
Conversation
|
I'll have to think about this and this week I'm already packed. Thanks @antoniomika |
d9ca515 to
13136de
Compare
|
Hi, I just tested this patch with SFTPGo for proxy SSH and FTP connections, it looks fine. Are there any blockers to merge it? thanks |
pires
left a comment
There was a problem hiding this comment.
Can you please add comments to the code explaining what you're doing here? It took me a bit to understand why we'd care about keeping track of deadline times for read and write, and I'm not even sure I got it right. IIUC we must keep track so that ReadHeaderTimeout doesn't interfere w/ user provided deadlines.
13136de to
8605208
Compare
|
Hey @pires, Added some more documentation, cleaned up some unneeded boilerplate and we should be ready to go! Best, |
pires
left a comment
There was a problem hiding this comment.
This LGTM but I have two questions. Please, be patient w/ me here @antoniomika.
Thank you very, very much for this contribution!
8605208 to
4a3af4f
Compare
f19e669
into
pires:bugfix/reset_conn_read_deadline_after_successful_header
Sorry about that, I should've checked if there was another PR with the static check fixes. I use code spaces and was a bit OCD with the linting issues. I actually started working on #73 but those changes were more complicated so I decided to leave them for when I had more time. You can remove those changes in your PR now and merge in #82. |
|
Yeah #73 is painful. Also have a branch for a long while now 😅 |
edited by @pires
Fixes #75