http://www.perlmonks.org?node_id=1033468


in reply to Re^3: My server doesnt get all the data sent by the client application
in thread My server doesnt get all the data sent by the client application

I got the problem solved, but i dont quite understand why I need to do that. I had to recv data twice to get the 1st and 2nd buffer.

..... while(my $new_sock = $sock->accept()) { $|=1; $new_sock->recv($text1, 600); $new_sock->recv($text2, 800); } ....
Does anyone know when we need to do this? Thanks!