[ 
https://issues.apache.org/jira/browse/AVRO-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992721#comment-12992721
 ] 

Doug Cutting commented on AVRO-761:
-----------------------------------

Thanks for the patch, Richard.

It would be good to have a test case for this, but I don't see how to do that 
easily.  Perhaps we could maintain a HandshakeMatch field RPCPlugin, then add a 
plugin to TestProtocolHttp whose clientFinishConnect() implementation checks 
that the match for all but the first call is HandshakeMatch.BOTH?

> Requestor sends protocol text on each handshake under certain circumstances
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-761
>                 URL: https://issues.apache.org/jira/browse/AVRO-761
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Richard Ahrens
>         Attachments: Requestor.java.patch
>
>
> When using a stateless transport such as HTTP and different protocol versions 
> on client and server, Requestor will send the local protocol text on each 
> request once a handshake match is established.  For large protocols, this 
> slows things down considerably.  The attached patch resolves the issue by 
> resetting the sendLocalText field after a successful handshake.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to