Fix loop spinning in HttpClient
parent
3d851d8be7
commit
6ef86b69a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue