celluloid / reel

UNMAINTAINED: See celluloid/celluloid#779 - Celluloid::IO-powered web server
https://celluloid.io
MIT License
596 stars 87 forks source link

SSLSocket cannot be IO.copy_stream destination. #102

Open digitalextremist opened 10 years ago

digitalextremist commented 10 years ago

One of the #90 twins.

Using #90's behavior for IO.copy_stream seems fine for HTTP now.

Now the problem is that even if the IO object is properly exposed so that it does not raise an exception, copying IO to an SSLSocket as a destination causes a browser error. I will troubleshoot this further, but so far it seems to always happen.

Will work on repro for this also.

digitalextremist commented 10 years ago

Curl's output:

curl: (56) SSL read: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number, errno 0