Fix loop spinning in HttpClient

bug/bundler_fix
rwhitcroft 2015-04-16 10:49:47 -04:00
parent 3d851d8be7
commit 6ef86b69a7
1 changed files with 2 additions and 0 deletions

View File

@ -586,6 +586,8 @@ class Client
begin
buff = conn.get_once(-1, 1)
return resp if buff.nil? or buff.empty?
rv = resp.parse( buff || '' )
# Handle unexpected disconnects