Skip to content

poor connection management results in errors with http connections that are kept alive #122

@cjw296

Description

@cjw296

This line can close the connection before the response has finished reading from it:

https://github.com/splunk/splunk-sdk-python/blob/master/splunklib/binding.py#L1341

This happens when the connection has kept a reference to the response:

https://hg.python.org/cpython/file/v2.7.5/Lib/httplib.py#l782

The conditions under which this case happen are covered by the code in HTTPResponse.begin (look for will_close):

https://hg.python.org/cpython/file/v2.7.5/Lib/httplib.py#l402

The connection should not be closed in this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions