diff --git a/contrib/urack.rb b/contrib/urack.rb index 73b8b397..d07fbb16 100644 --- a/contrib/urack.rb +++ b/contrib/urack.rb @@ -191,6 +191,10 @@ module Rack buf, sender = client.recvfrom(remains) end + if buf.length == 0 + break + end + rack_input.write( buf ) remains -= buf.length end