Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion splunklib/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,10 @@ def request(url, message, **kwargs):
if timeout is not None:
connection.sock.settimeout(timeout)
response = connection.getresponse()
finally:
### fix for Splunk Support Case: 204977
### this removes the "finally" keyword, which automatically closed the connection, making
### it impossible to use the reader object on line 763 above (because the connection had been closed here.
except:
connection.close()

return {
Expand Down