Skip to content

writer.get_extra_info('peername') returns None #92

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

Closed
Jonney opened this issue Oct 28, 2020 · 1 comment
Closed

writer.get_extra_info('peername') returns None #92

Jonney opened this issue Oct 28, 2020 · 1 comment

Comments

@Jonney
Copy link
Contributor

Jonney commented Oct 28, 2020

Task exception was never retrieved
future: <Task finished coro=<stream_handler() done, defined at /usr/local/lib/python3.7/dist-packages/pproxy/server.py:54> exception=Un
boundLocalError("local variable 'remote_ip' referenced before assignment")>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pproxy/server.py", line 60, in stream_handler
remote_ip, remote_port, *_ = writer.get_extra_info('peername')
TypeError: cannot unpack non-iterable NoneType object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pproxy/server.py", line 92, in stream_handler
verbose(f'{str(ex) or "Unsupported protocol"} from {remote_ip}')
UnboundLocalError: local variable 'remote_ip' referenced before assignment

@Jonney
Copy link
Contributor Author

Jonney commented Nov 1, 2020

#93

@Jonney Jonney closed this as completed Nov 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

No branches or pull requests

1 participant