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

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

Hey thanks for the patch Stefan :)


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

[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

  • Daniel Oconnor at May 23, 2009 at 6:01 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=11981&edit=1

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

    -Assigned To:
    +Assigned To: danielc




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

    [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.

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 23, '09 at 6:01p
activeMay 23, '09 at 6:01p
posts2
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 2 posts

People

Translate

site design / logo © 2022 Grokbase