1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
Commit graph

10 commits

Author SHA1 Message Date
Colin J. Fuller
6e914cf02d Fix for issue 350.
Within MiniSSL#read_nonblock it was possible for all data to be read from the
network connection but only partially read from the engine on the first
attempt.  This could lead to a hang during a later IO.select call because no more data
was being sent over the socket but the request could not be processed because
all the data hadn't been read from the engine.

Changed read nonblock to repeatedly attempt to read from the engine until there
is nothing more ready to read.
2013-11-24 19:57:12 -08:00
Evan Phoenix
d996daa15a Handle all engine data when possible. Fixes #251. 2013-06-17 23:20:54 -07:00
Ward Vandewege
eac3cc7f82 Make sure to use bytesize instead of size when writing data in the
MiniSSL's write.

@engine.write reports bytes written, not characters written.
2013-05-06 14:32:03 -04:00
Evan Phoenix
db01585874 Fixup some tests to pass in travis 2013-03-18 16:20:37 -07:00
rubiii
30ea3d0506 made MiniSSL validate key/cert file existence
Previously, MiniSSL accepted invalid paths for the key/cert file
and timed out on the first request. Now, MiniSSL raises an ArgumentError
if one of these files does not exist.

Fix for puma/puma#168
2012-11-30 13:52:05 +01:00
Evan Phoenix
9114e3c9d2 Add proper methods for nonblocking 2012-09-10 08:50:43 -07:00
Jingwen Owen Ou
6a5b30ea30 Move singleton method to MiniSSL.java 2012-08-23 20:06:18 -07:00
Evan Phoenix
e191003fc4 Start java version of MiniSSL 2012-08-23 16:56:37 -07:00
Evan Phoenix
f38678f2d7 Handle SSL eof and nonblocking 2012-08-22 22:34:10 -07:00
Evan Phoenix
17a058a158 Minor cleanup and properly scope 2012-08-22 22:12:12 -07:00
Renamed from lib/minissl.rb (Browse further)