Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.5

Request #11981 Creating the payload before opening a socket connection
Submitted: 2007-09-05 10:03 UTC
From: albo Assigned: danielc
Status: Closed Package: XML_RPC (version 1.5.1)
PHP Version: 5.2.2 OS: Debian Edge
Roadmaps: 1.5.3    
Subscription  


 [2007-09-05 10:03 UTC] albo (Stefan Meyer)
Description: ------------ The function sendPayloadHTTP10 first opens a socket connection and then creates the payload (if it hasn't been already created). This may cause socket timeout problems if you send a lot of data. Solutions: a) Always call create Payload after starting a new message: $msg = new XML_RPC_Message(...); $msg->createPayload(); b) A simple modification in sendPayloadHTTP10 which first creates the payload and after that opens the socket. See attached patch file.

Comments

 [2009-05-24 00:00 UTC] doconnor (Daniel O'Connor)
Hey thanks for the patch Stefan :)
 [2009-05-24 00:00 UTC] doconnor (Daniel O'Connor)
-Assigned To: +Assigned To: danielc
 [2010-01-07 19:23 UTC] danielc (Daniel Convissor)
-Status: Assigned +Status: Closed
Fixed in SVN. Will be part of the next release.