Re: stream_socket_accept() on an SSL socket

From: Date: Wed, 03 Dec 2008 03:01:47 +0000
Subject: Re: stream_socket_accept() on an SSL socket
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284032@lists.php.net to get a copy of this message
Darren wrote:
I'm trying to connect to an SSL server, but I keep on getting these errors: --------- PHP Warning: stream_socket_accept(): SSL operation failed with code 1. OpenSSL Error messages: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol in C:\scripts\bouncer.php on line 273 PHP Warning: stream_socket_accept(): Failed to enable crypto in C:\scripts\bouncer.php on line 273 PHP Warning: stream_socket_accept(): accept failed: The operation completed successfully. in C:\scripts\bouncer.php on line 273 --------- Line 273: while ($client = stream_socket_accept($srv_socket)) { Over the past few days of searching I've found a lot of people asking a similar thing but without any answers. I've tried the latest PHP snapshot too. Can anyone here give any insight to these errors?? Thanks for any help Darren
Ok thanks guys. Turns out the SSL server was messing up, so PHP wasn't at fault here. (It's a bespoke server app, not apache). Thanks for your help.

« previous php.general (#284032) next »