Skip to content

Commit c343895

Browse files
author
Brent Cook
committed
Land rapid7#5169, stop reading when the HTTP socket is closed
2 parents 6feb52f + 70f94bb commit c343895

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rex/proto/http/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ def read_response(t = -1, opts = {})
579579

580580
rv = nil
581581
while (
582+
not conn.closed? and
582583
rv != Packet::ParseCode::Completed and
583584
rv != Packet::ParseCode::Error
584585
)

0 commit comments

Comments
 (0)