joshelser opened a new pull request #127:
URL: https://github.com/apache/calcite-avatica/pull/127


   …/401
   
   SPNEGO's handshake involves sending an HTTP/401 to "challenge" the
   client to reply with authentication data. If the client is sending
   a significant amount of data in the original request, the client
   will still be writing this data when the server replies. This causes
   the client to receive a TCP Reset when it continues to write data, and
   ultimately manifests in a "Broken Pipe" runtime exception.
   
   The fix is to simply consume all data the client wrote prior to
   responding with the HTTP/401.
   
   This also changed some stuff in AvaticaProtobufHandler to reduce a level of 
nested conditionals and fix a Logger class. The overall flow/purpose of that 
class did not change.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to