Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests.Session is not properly closed #187

Open
PabloCastellano opened this issue May 24, 2020 · 0 comments · May be fixed by #188
Open

requests.Session is not properly closed #187

PabloCastellano opened this issue May 24, 2020 · 0 comments · May be fixed by #188

Comments

@PabloCastellano
Copy link

PabloCastellano commented May 24, 2020

I'm using pyswagger inside a Django project to retrieve data from another API. On every request I'm getting the following warning:

/home/xxx/virtualenvs/aee/lib/python3.6/site-packages/django/views/generic/base.py:97: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 59088), raddr=('127.0.0.1', 8000)>
  return handler(request, *args, **kwargs)

After some debugging, looks like requests.Session is never closed. Pull request sent.

PabloCastellano added a commit to PabloCastellano/pyswagger that referenced this issue May 24, 2020
PabloCastellano added a commit to PabloCastellano/pyswagger that referenced this issue May 24, 2020
@PabloCastellano PabloCastellano linked a pull request May 24, 2020 that will close this issue
PabloCastellano added a commit to PabloCastellano/pyswagger that referenced this issue Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant