<HTML><HEAD><META content="text/html; charset=UTF-8" http-equiv="Content-Type"></HEAD><BODY>Netty does not close the connection by itself.&nbsp; It only closes it when .close() was called or the peer closed the connection.<BR>
<BR>
What is interesting is that decodeLast() is not called in some cases.&nbsp; Could you post the code so that we can reproduce the problem?<BR>
<BR>
Thanks<BR>
<BR>
roboke wrote:<BR>
&gt; Thanks for your answer, Trustin!<BR>
&gt;<BR>
&gt; You're right. The channel is getting closed and therefor the decodeLast() is<BR>
&gt; called.<BR>
&gt;<BR>
&gt; What is strange is, that there is no one, that closes the channel. The<BR>
&gt; use-case is, that the handler sends a message downstream and immediatly<BR>
&gt; after the message passed the last encoder the channel is closed. It looks<BR>
&gt; like it's closed by "someone inside netty". But I am sure, there is no code<BR>
&gt; of mine performing the close and I am also sure, the receiver of the message<BR>
&gt; is not closing the channel.<BR>
&gt; I tried to explicitely close the channel by myself and the behaviour was<BR>
&gt; different. The channel is closed, but the decodeLast is not called. Also<BR>
&gt; when I explicitely closed the channel by the receiver of the message - no<BR>
&gt; decodeLast was called.<BR>
&gt; So my conclusion for now could be, that for some reason netty writes the<BR>
&gt; data to the receiver and then closes the channel without being told to do<BR>
&gt; so.<BR>
&gt;<BR>
&gt; But I assume, that's not how netty works, right?<BR>
&gt;<BR>
&gt; Best regards,<BR>
&gt; roboke<BR>
&gt;<BR>
&gt; --<BR>
&gt; View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/FrameDecoder-gets-empty-buffer-tp6935816p6940167.html<BR>
&gt; Sent from the Netty User Group mailing list archive at Nabble.com.<BR>
&gt; _______________________________________________<BR>
&gt; netty-users mailing list<BR>
&gt; netty-users@lists.jboss.org<BR>
&gt; https://lists.jboss.org/mailman/listinfo/netty-users</BODY></HTML>