cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Problems sending file (290KB) through SOAP (over ssl)

From: Daniel Fenert <daniel_at_lerkins.com>
Date: Fri, 9 Jan 2004 12:27:44 +0100

I have problem sending 290KB file through SOAP over ssl.

All other (smaller) files are sent without problems.

This one is sent, everything looks ok from receiver side, whole file
is uploaded, but sender gets error:

curl_exec error 28 Operation timed out with 537 out of 537 bytes received
Sometimes error is: curl_exec error 28 Operation timed out with 0 out of -1 bytes received

Script part on sender side:
                    $sc = new SOAP_Client($value);
                    $sc->setOpt('curl', CURLOPT_SSLCERT, "path");
                    $sc->setOpt('curl', CURLOPT_SSLCERTPASSWD, "pass");
                    $sc->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);
                    $sc->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 2);
                    $method = 'upload';
                    $options = array('namespace' => 'urn:SOAP_upl');
                    $params=array(
                        '0' => "param1",
                        '1' => "param2"
                        );

                    $response[$value] = $sc->call($method, $params, $options);

From Receiver logfile:
[09/Jan/2004 11:29:41 01587] [info] Connection to child 6 established (server xxx:443, client yyy)
[09/Jan/2004 11:29:41 01587] [info] Seeding PRNG with 1160 bytes of entropy
[09/Jan/2004 11:29:41 01587] [info] Connection: Client IP: yyy, Protocol: TLSv1, Cipher: DHE-RSA-AES256-SHA (256/256 bits)
[09/Jan/2004 11:29:42 01587] [info] Initial (No.1) HTTPS request received for child 6 (server xxx:443)
[09/Jan/2004 11:29:46 01587] [info] Connection to child 6 closed with standard shutdown (server xxx:443, client yyy)

So, looks like there's no problem from receiver side.

tcpdump on receiver:
....
12:10:41.947915 yyy.50765 > xxx.443: . 406201:407649(1448) ack 2975 win 11584 <nop,nop,timestamp 208226021 25656541> (DF)
12:10:41.948344 yyy.50765 > xxx.443: P 409097:409509(412) ack 2975 win 11584 <nop,nop,timestamp 208226021 25656541> (DF)
12:10:41.949258 xxx.443 > yyy.50765: . ack 407649 win 63712 <nop,nop,timestamp 25656591 208226018,nop,nop,sack sack 1 {409097:409509} > (DF)
12:10:41.949591 yyy.50765 > xxx.443: . 407649:409097(1448) ack 2975 win 11584 <nop,nop,timestamp 208226021 25656541> (DF)
12:10:41.949732 xxx.443 > yyy.50765: . ack 409509 win 62264 <nop,nop,timestamp 25656591 208226021> (DF)
12:10:42.442761 xxx.443 > yyy.50765: P 2975:3780(805) ack 409509 win 63712 <nop,nop,timestamp 25656640 208226021> (DF)
12:10:42.601451 yyy.50765 > xxx.443: P 409509:409546(37) ack 2975 win 11584 <nop,nop,timestamp 208226121 25656591> (DF)
12:10:42.602064 xxx.443 > yyy.50765: . ack 409546 win 63712 <nop,nop,timestamp 25656656 208226121> (DF)
12:10:42.602577 yyy.50765 > xxx.443: F 409546:409546(0) ack 2975 win 11584 <nop,nop,timestamp 208226121 25656591> (DF)
12:10:42.602788 xxx.443 > yyy.50765: P 3780:3817(37) ack 409547 win 63712 <nop,nop,timestamp 25656656 208226121> (DF)
12:10:42.603431 xxx.443 > yyy.50765: F 3817:3817(0) ack 409547 win 63712 <nop,nop,timestamp 25656656 208226121> (DF)
12:10:42.606821 yyy.50765 > xxx.443: R 3745404818:3745404818(0) win 0 (DF)
12:10:42.760280 yyy.50765 > xxx.443: R 3745404855:3745404855(0) win 0 (DF)
12:10:42.761116 yyy.50765 > xxx.443: R 3745404856:3745404856(0) win 0 (DF)
12:10:42.762179 yyy.50765 > xxx.443: R 3745404856:3745404856(0) win 0 (DF)

The last lines while sending smaller file (without error) look like this:
....
12:15:30.180460 yyy.50797 > xxx.443: F 7085:7085(0) ack 3780 win 14480 <nop,nop,timestamp 208254881 25685397> (DF)
12:15:30.180970 xxx.443 > yyy.50797: P 3780:3817(37) ack 7086 win 20272 <nop,nop,timestamp 25685414 208254881> (DF)
12:15:30.181589 xxx.443 > yyy.50797: F 3817:3817(0) ack 7086 win 20272 <nop,nop,timestamp 25685414 208254881> (DF)
12:15:30.344358 yyy.50797 > xxx.443: R 4055206417:4055206417(0) win 0 (DF)
12:15:30.344620 yyy.50797 > xxx.443: R 4055206417:4055206417(0) win 0 (DF)

Versions used:
Sender:
        apache-1.3.29
        php-4.3.4
                SOAP 0.8RC2 beta
        curl 7.10.8 (i686-pc-linux-gnu) libcurl/7.10.8 OpenSSL/0.9.7a zlib/1.1.4

Receiver:
        apache-1.3.29
        php-4.3.3
                SOAP 0.8RC2 beta

Any help appreciated.

-- 
Daniel Fenert
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
Received on 2004-01-09