puma/puma — pull request #250 by cure (2013-05-06 18:42:37+00:00)
Title: Make sure to use bytesize instead of size (MiniSSL write)

Make sure to use bytesize instead of size when writing data in
MiniSSL's write.

@engine.write reports bytes written, not characters written. Without this patch need can go negative. This happens when SSL is enabled... This patch is not enough to fix SSL in puma 2.0.1 but it helps.