in reply to Re: 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

Do you think I cant get an xml content from $_? I know my program has received the below data.its in xml format. Would that be contributing to the problem?

<CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="425381" PROTOCOLVERSION="1.0"><SIMPLEREQ><IMETHODCALL NAME="EnumerateInstances"><LOCALNAMESPACEPATH><NAMESPACE NAME="root"/><NAMESPACE NAME="brocade1"/></LOCALNAMESPACEPATH><IPARAMVALUE NAME="ClassName"><CLASSNAME NAME="Brocade_Fabric"/></IPARAMVALUE><IPARAMVALUE NAME="LocalOnly"><VALUE>true</VALUE></IPARAMVALUE><IPARAMVALUE NAME="DeepInheritance"><VALUE>false</VALUE></IPARAMVALUE><IPARAMVALUE NAME="IncludeQualifiers"><VALUE>false</VALUE></IPARAMVALUE><IPARAMVALUE NAME="IncludeClassOrigin"><VALUE>true</VALUE></IPARAMVALUE></IMETHODCALL></SIMPLEREQ></MESSAGE></CIM>

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

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

    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.

      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!