You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In development, some of our assets don't get served completely and eventually the browser times out. Content-Length comes through correctly but puma only sends a portion of the response.
That's a bug. It needs to check the return value and call syswrite again with more of the output. #syswrite goes straight to write(2) so it's limited by the OS. This is a simply oversight.
2.0.0b3, MRI 1.9.3-p194, Rails 3.2.6
In development, some of our assets don't get served completely and eventually the browser times out. Content-Length comes through correctly but puma only sends a portion of the response.
Narrowed it down to
syswrite
at server.rb#L455 (https://github.com/puma/puma/blob/master/lib/puma/server.rb#L455). For a large asset, e.g.part.bytesize == 705661
, but thatclient.syswrite part
only returns 180224.Even for other large assets, the
syswrite
always only writes 180224 bytes. For smaller files, everything is fine.Puma never checks the return value and continues; the client waits on more data.
Any ideas?
The text was updated successfully, but these errors were encountered: