Skip to content

SocketClosed issue #13

@neowulf

Description

@neowulf

I occasionally see this error in my logs even though the request completes:

 INFO - Error while receiving a control message (SocketClosed): received exception "read of closed file"

The calling code looks like this:

  with TorRequest() as tr:
    logger.debug("making request")
    response = tr.get(url)
    logger.debug("got response")
    # error happens here
    ...
  1. Is it better to have the tor daemon running rather than having it be invoked by the script?
  2. Certainly seems to be a benign issue and I suspect it's happening when the tor session is being torn down. How do I debug this issue or squelch this message?

I'd greatly appreciate any help or pointers! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions