[security-dev 00107]: JSSE sends a packet for every send()?

Max (Weijun) Wang Weijun.Wang at Sun.COM
Fri Mar 14 05:40:03 UTC 2008


Playing with JSSE now.

I'm sending a byte[100] on client side using 100 calls of write(int).  
When receiving them on the server side using read(byte[100]), I need  
to call it 100 times and each time it only returns 1.

Does this mean the client generates one SSL packet for each write()  
call? Why cannot it collect enough bytes before sending them if the  
user hasn't call flush()? Is this behavior documented somewhere?

Compatibility issue?

Thanks
Max




More information about the security-dev mailing list