celluloid / reel

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

Server::HTTP produces: Error accepting SSLSocket: IOError: closed stream #177

Closed digitalextremist closed 9 years ago

digitalextremist commented 9 years ago

This build error is blocking #174 ( #176 ) under jruby only.

digitalextremist commented 9 years ago

The issue here is interesting. Under jRuby, the errors are happening as they do under Rubinius... the only difference is that when the program is terminated, suddenly a backlog of messages want to output, and that I believe is causing the build to error.

tarcieri commented 9 years ago

@digitalextremist this might be because Celluloid doesn't properly implement log-flushing. By default Ruby buffers data written to I/O objects in userspace

digitalextremist commented 9 years ago

@tarcieri This issue also happens however, when no connections at all are made to the server..

digitalextremist commented 9 years ago

Seems like a problem with jruby-openssl @headius

I'm testing this with 1.7.16.1 and using jruby-openssl-java-1.9.6

About to try 1.7.19 and jruby-head

digitalextremist commented 9 years ago

This does also happen with 1.7.19 Retesting with jruby-head which I'd imagine is 9k

digitalextremist commented 9 years ago

New, clearer message: SSLSocket: IOError: Writing not possible during handshake

digitalextremist commented 9 years ago

Wow. There's all kinds of new-bad going on with jruby-9.0.0.0-pre1 The test-client can't hit the server more than 23 or so times before the server locks completely.

digitalextremist commented 9 years ago

This was resolved.