FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=11981&edit=1

ID: 11981
Updated by: danielc@analysisandsolutions.com
Reported By: albo at justmail dot de
Summary: Creating the payload before opening a socket
connection
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: XML_RPC
Operating System: Debian Edge
Package Version: 1.5.1
PHP Version: 5.2.2
Assigned To: danielc
Roadmap Versions:
New Comment:

-Status: Assigned
+Status: Closed
Fixed in SVN. Will be part of the next release.


Previous Comments:
------------------------------------------------------------------------

[2009-05-23 20:00:24] doconnor

-Assigned To:
+Assigned To: danielc


------------------------------------------------------------------------

[2009-05-23 20:00:12] doconnor

Hey thanks for the patch Stefan :)

------------------------------------------------------------------------

[2007-09-05 06:03:00] albo

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.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 7, '10 at 2:24p
activeJan 7, '10 at 2:24p
posts1
users1
websitepear.php.net

1 user in discussion

Danielc: 1 post

People

Translate

site design / logo © 2022 Grokbase