why socketChannel.write always return 0 ,server somethings can not send message to the client
"이희승 (Trustin Lee)"
trustin at gmail.com
Thu Aug 26 01:16:50 EDT 2010
It means the client is not reading the data that the server wrote to the
client. Maybe client is not working as expected?
On 08/12/2010 07:15 PM, tantom wrote:
>
> 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.
--
what we call human nature in actuality is human habit
http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100826/d633aa12/attachment.bin
More information about the netty-users
mailing list