Hi,
if i call websocket-send("foobar)", my server will answers. But if i try to
call send() in sequence, e.g. in a for-loop, only a few answers arrive the
client and the server throws a "java.io.IOException Broken Pipe":
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:72)
at sun.nio.ch.IOUtil.write(IOUtil.java:28)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:219)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:282)
at
org.eclipse.jetty.websocket.WebSocketGeneratorD00.flushBuffer(WebSocketGeneratorD00.java:137)
at
org.eclipse.jetty.websocket.WebSocketGeneratorD00.addFrame(WebSocketGeneratorD00.java:84)
at
org.eclipse.jetty.websocket.WebSocketConnectionD00.sendMessage(WebSocketConnectionD00.java:236)
at de.wstest.WebSocketClass.onMessage(WebSocketClass.java:34)
at
org.eclipse.jetty.websocket.WebSocketConnectionD00$FrameHandlerD0.onFrame(WebSocketConnectionD00.java:438)
at
org.eclipse.jetty.websocket.WebSocketParserD00.parseNext(WebSocketParserD00.java:148)
at
org.eclipse.jetty.websocket.WebSocketConnectionD00.handle(WebSocketConnectionD00.java:154)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:662)
2012-01-11 10:17:01.061:WARN::java.io.IOException: Broken pipe
Can anybody say me how to solve this problem?
I want to send multiple messages to the server in a short time. Is that
possible or is there a workaround or something like this?
best regards
hschenk
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users