diff options
-rw-r--r-- | lib/yahns/proxy_http_response.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb index 1776291..7df2834 100644 --- a/lib/yahns/proxy_http_response.rb +++ b/lib/yahns/proxy_http_response.rb @@ -132,7 +132,9 @@ module Yahns::HttpResponse # :nodoc: # send the headers case rv = kgio_syssend(res, flags) - when nil then break # all done, likely + when nil # all done, likely + res.clear + break when String # partial write, highly unlikely flags = MSG_DONTWAIT res = rv # hope the skb grows |