Delay in response byte stream

25 views
Skip to first unread message

Elango R

unread,
Mar 4, 2017, 1:15:28 PM3/4/17
to Netty discussions
Hi,

I am new to Netty and looking at an issue. Hope someone can direct me in the right directions.

I have several Java clients communicating with a legacy SSL server and the response always comes back in a single packet.

With Netty, the first response comes back as a single packet and the rest of the response are coming as 2 packets.
The first packet has only first byte in the response stream and the second packet has the rest of the response.

Is there a way to force Netty to send the whole response as a single packet.

Please let me know if you need any additional information.

Thanks,
Elango.

Rogan Dawes

unread,
Mar 4, 2017, 1:23:52 PM3/4/17
to Netty discussions

I'm assuming that you are reimplementing the server using netty, and the existing clients are not liking the way your implementation packetizes the output.

It sounds like you need to construct your output from your server in one ByteBuf, then call writeAndFlush on that ByteBuf.

Also, check out Netty's encoders and decoders, they should help you to get this right.

Rogan


--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/6c4f1642-2a9c-4df6-bf2c-4fae3f939f65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Elango R

unread,
Mar 4, 2017, 7:48:48 PM3/4/17
to Netty discussions
Thanks Rogan for your inputs. I will do some research on this.

Your understanding is correct. The server is re-implemented using Netty.

Regards,
Elango.
- show quoted text -

Reply all
Reply to author
Forward
0 new messages