mucinoab opened a new pull request, #912:
URL: https://github.com/apache/mina-sshd/pull/912

   The SOCKS5 proxy used for dynamic port forwarding parsed each read as a 
complete message, throwing a buffer underflow when the greeting or the CONNECT 
request arrived split across several reads. It also reused the CONNECT request 
buffer as the reply, echoing request bytes (and any application data pipelined 
after the request) back to the client instead of forwarding them.
   
   Rewrite Socks5 as a state machine with a retained buffer: parse only once a 
message is complete and queue bytes received before the channel opens, 
forwarding them once it is up.
   
   The state is synchronized because channel open and write futures complete on 
other threads.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to