As you can see, when there is no data available it just returns an emty string.
I would check in.remaining() before reading the header

Thanks for your help. As you may see this test is already done in decodable(). As far as I know decodable is called before decode. So when readHeader is called there is more than HEADER_LENGHT data? So an empty string is not return. By the way, let's imagine that it is the case, I don"t see how it can be related to a duplicate message ? again do i miss something important ?




Reply via email to