Hello,
somehow, SSL connections to plague-server are broken currently. When the sent request is <1024 bytes it seems to hang forever.
Reproducible e.g. by:
---------- $ cat >xmldata <<EOF <?xml version="1.0"?> <methodCall> <methodName>examples.getStateName</methodName> <params> <param> <value><i4>41</i4></value> <!-- AAA ... AAA --> </param> </params> </methodCall> EOF
$ curl -0 -v --data-ascii "$(cat xmldata)" --cert ~/.fedora.cert \ --cacert ~/.fedora-server-ca.cert --key ~/.fedora.cert -k -3 \ https://buildsys.fedoraproject.org:8887/RPC2 ----------
When the '<!-- ... -->' placeholder is kept as-is (--> <1024 Bytes), curl won't return. Filling it with some chars make curl return correctly.
Related code for a curl-based plague-client worked a week ago but hangs now.
Enrico
On Sun, 2006-01-22 at 23:38 +0100, Enrico Scholz wrote:
Hello,
somehow, SSL connections to plague-server are broken currently. When the sent request is <1024 bytes it seems to hang forever.
What plague version? You may need to update to 0.4.3-3 to get things to work smoothly... It's available for fc4 and fc3, rawhide is broken so I wasn't able to push a build through for that.
Dan
enrico.scholz@informatik.tu-chemnitz.de (Enrico Scholz) writes:
somehow, SSL connections to plague-server are broken currently. When the sent request is <1024 bytes it seems to hang forever.
Reproducible e.g. by:
$ cat >xmldata <<EOF
<?xml version="1.0"?>
<methodCall> <methodName>examples.getStateName</methodName> <params> <param> <value><i4>41</i4></value> <!-- AAA ... AAA --> </param> </params> </methodCall> EOF
$ curl -0 -v --data-ascii "$(cat xmldata)" --cert ~/.fedora.cert \ --cacert ~/.fedora-server-ca.cert --key ~/.fedora.cert -k -3 \ https://buildsys.fedoraproject.org:8887/RPC2
Some more details: doing the same thing with 'wget' succeeds:
$ wget -dS -O- --secure-protocol=SSLv3 --no-check-certificate \ --certificate ~/.fedora.cert --private-key ~/.fedora.cert \ --post-file /tmp/xmldata1 https://buildsys.fedoraproject.org:8887/RPC2
Analysing the transmitted data shows, that (the hanging) 'curl' sends one 464 sized hunk of data while (the working) 'wget' sends 4 hunks of data (32 + 224 + 32 + 192 Bytes).
In the >=1024 bytes data case (which works), 'curl' sends two hunks of data.
Because 'curl' is very widely used and tested, and does not show these problems on any other server, it is very, very likely that the latest changes on plague-server broke something. Especially, because it worked a week ago.
I can probably workaround the problem with sending my buildrequests with manual created requests through wget intermediately. But it would be very nice when the plague-server will be fixed.
Further analyses must be done on server-side, the two examples above should give enough information... ;)
Enrico
buildsys@lists.fedoraproject.org