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

Jeff Hammerbacher commented on AVRO-323:
----------------------------------------

When debugging rpcsend, I can see that my Python server is receiving the 
initial client request, parsing the Handshake properly, and noting that it 
doesn't know the client hash. It's then returning a handshake response and 
closing the socket. The Java client doesn't know that the socket has been 
closed on it, so it tries to write its more verbose handshake request, but gets 
a broken pipe, like so: 

{code}
19 [main] INFO org.apache.avro.ipc.SocketTransceiver - open to 
localhost/127.0.0.1:9090
Exception in thread "main" java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcher.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
        at sun.nio.ch.IOUtil.write(IOUtil.java:75)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
        at 
org.apache.avro.ipc.SocketTransceiver.writeBuffers(SocketTransceiver.java:78)
        at org.apache.avro.ipc.Transceiver.transceive(Transceiver.java:33)
        at org.apache.avro.ipc.Requestor.request(Requestor.java:110)
        at org.apache.avro.tool.RpcSendTool.run(RpcSendTool.java:80)
        at org.apache.avro.tool.Main.run(Main.java:73)
        at org.apache.avro.tool.Main.main(Main.java:62)
{code}

> Support raw sockets as a transport in avroj
> -------------------------------------------
>
>                 Key: AVRO-323
>                 URL: https://issues.apache.org/jira/browse/AVRO-323
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Jeff Hammerbacher
>            Assignee: Doug Cutting
>         Attachments: AVRO-323.patch, AVRO-323.patch
>
>


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