in reply to Re^2: 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 receive this data almost after an hour. I dont get it. I don't know why we cant get the data right away. I took a network capture and do see the buffers being sent almost instantaneously.

  • Comment on Re^3: My server doesnt get all the data sent by the client application

Replies are listed 'Best First'.
Re^4: My server doesnt get all the data sent by the client application
by Rad (Novice) on May 14, 2013 at 13:57 UTC

    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!