[wp-trac] [WordPress Trac] #25716: HTTP requests fails with "SSL read: error:00000000:lib(0):func(0):reason( 0), errno 0"

WordPress Trac noreply at wordpress.org
Sun Oct 27 00:42:06 UTC 2013


#25716: HTTP requests fails with "SSL read: error:00000000:lib(0):func(0):reason(
0), errno 0"
------------------------------+--------------------
 Reporter:  ocean90           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  highest omg bbq   |   Milestone:  3.7.1
Component:  HTTP              |     Version:  3.7
 Severity:  blocker           |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by dd32):

 Also appears to affect Ubuntu versions of PHP where cURL is compiled with
 certain versions of GnuTLS (instead of OpenSSL), one again simple HTTPS
 requests succeed, post with a body fails:
 https://bugs.launchpad.net/ubuntu/+source/gnutls26/+bug/1111882

 > [PASS]: cURL is installed and supports SSL communication, cURL Details:
 version_number=464384; age=3; features=50749; ssl_version_number=0;
 '''version=7.22.0'''; host=x86_64-pc-linux-gnu;
 '''ssl_version=GnuTLS/2.12.14'''; libz_version=1.2.3.4;
 protocols=dict,file,ftp,ftps,gopher,http,https,imap,imaps,ldap,pop3,pop3s,rtmp,rtsp,smtp,smtps,telnet,tftp
 > [PASS]: [cURL] Communication with WordPress.org suceeded, it took 0.908
 seconds
 > [FAIL]: [cURL with a POST body] Communication with WordPress.org failed
 with error: [http_request_failed]: GnuTLS recv error (-9): A TLS packet
 with unexpected length was received.

 It appears that GnuTLS will emit that failure when it encounters a server
 that it doesn't believe adhere to the SSL spec, so the above patch that
 tests for the known-bad cURL version won't help.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25716#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list