Deal with hanging connections and unknown protocols.
Closed this issue · 1 comments
synchronizing commented
As of right now mitm
does not deal with hanging connections and unknown protocols very well. httpq
will hang if the client never provide the correct bytes:
Lines 117 to 121 in 5b9ae63
Probable solution:
(a) Check if client.at_eof
directly on the while
loop, and
(b) Read up to n
bytes. If we don't have a valid HTTP first line by then, the client is sending some other protocol.
synchronizing commented