I have a webserver running Apache2 using mod-ssl which will be the target primarily of small HTTPS requests using cURL. In order to see how well the server would cope with many requests at the same time, I wrote a small script which spawns 200 background processes each issuing one request with cURL.
Occasionally cURL would output the error:
curl: (35) Unknown SSL protocol error in connection to mydomain.com:443
And in /var/log/apache2/error_log I have:
[info] [client ::1] Connection to child 45 established (server mydomain.com:443)
[info] Seeding PRNG with 144 bytes of entropy
[info] [client ::1] SSL library error 1 in handshake (server mydomain.com:443)
[info] SSL Library Error: 336027900 error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol speaking not SSL to HTTPS port!?
[info] [client ::1] Connection closed to child 45 with abortive shutdown (server mydomain.com:443)
Is there anything I can do to configure Apache/SSL to prevent this from happening?
Edit: I turns out that the lines in the error log are caused by an SSL internal connection, but I still get the above cURL error occassionally.