[ 
https://issues.apache.org/jira/browse/THRIFT-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829151#action_12829151
 ] 

Jonathan Ellis commented on THRIFT-689:
---------------------------------------

Good catch.  It will take a bit more work to make sure we leave the connection 
in a state where we can receive the next command, if any.

(Unfortunately the "easy" way of just sending an error, then closing the 
connection, won't work reliably; leaving data unread on the server before 
closing will trigger a reset on the client end.)

> Notify client of recoverable protocol errors on java server
> -----------------------------------------------------------
>
>                 Key: THRIFT-689
>                 URL: https://issues.apache.org/jira/browse/THRIFT-689
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Java)
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>         Attachments: 689.txt
>
>
> As described in CASSANDRA-711, the java thrift server disconnects clients 
> that send an invalid message (such as a method call with null arguments to 
> required parameters).  We should send an exception back to the client instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to