#82: Handling multiple packets

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

#82: Handling multiple packets

Openwsman
#82: Handling multiple packets
--------------------------+-------------------------------------------------
 Reporter:  vjsudhakaran  |       Owner:  nashif
     Type:  defect        |      Status:  new  
 Priority:  critical      |   Milestone:        
Component:  openwsman     |     Version:  1.0.1
 Keywords:                |  
--------------------------+-------------------------------------------------
 When the response from a WS-Man Client is fragmented into multiple
 packets, opentestment is not able to handle it. The code in
 HttpSlinger.java should be like:

                         String line;
                         boolean payload = false;
                         boolean http = true;
                         String complete_line = "";

                         while ((line = rd.readLine()) != null) {
                                 if ( http && !line.startsWith ( "<" ) )
                                 {
                                         continue;
                                 }
                                 else
                                         http = false;

                                 if ( payload )
                                 {
                                         payload = false;
                                         continue;
                                 }
                                 else
                                 {
                                         payload = true;
                                         complete_line += line;
                                 }

                         }
                         System.out.println(complete_line);

 When you have multiple packets, the format would be like

 {HTTP-Response}
 Payload
 <Packet1 .. data
 Payload
 packet2> .. data
 Payload
 packet3> .. data
 0 (The last payload)

--
Ticket URL: <http://www.openwsman.org/ticket/82>
Openwsman:  WS-Management for all <http://www.openwsman.org/>
WS-Management for all
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: #82: Handling multiple packets

Openwsman
#82: Handling multiple packets
---------------------------+------------------------------------------------
  Reporter:  vjsudhakaran  |       Owner:  nashif
      Type:  defect        |      Status:  closed
  Priority:  critical      |   Milestone:        
 Component:  openwsman     |     Version:  1.0.1
Resolution:  invalid       |    Keywords:        
---------------------------+------------------------------------------------
Changes (by vjsudhakaran):

  * status:  new => closed
  * resolution:  => invalid

--
Ticket URL: <http://www.openwsman.org/ticket/82#comment:1>
Openwsman:  WS-Management for all <http://www.openwsman.org/>
WS-Management for all
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel