why socketChannel.write always return 0 ,server somethings can not send message to the client
tantom
tantom2000 at gmail.com
Thu Aug 12 06:15:15 EDT 2010
hi all, i am writing an chat server application using netty. i use jdk1.6
some times the client(C#) can't get message sent by the server
when i debug in the netty(v3.2.1)
in the NioWorker.writeNow(NioSocketChannel channel, int writeSpinCount)
method
the channel.currentWriteEvent always has an the same event(it should be the
first blocking write evt), so the message can't send to the client
and i debug to buf.getBytes(bufIdx, channel.socket,
buf.writerIndex()-bufIdx) i found that socketChannel.write method always
return 0, i am new to socket develop, it's that means server can't write to
the client or something else?
the client still can send message to the server.
how to resolve this? or someone can tell me some point?
i don't know how this can happen again, it sometime happen.
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/why-socketChannel-write-always-return-0-server-somethings-can-not-send-message-to-the-client-tp5415545p5415545.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list