Skip to content

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

@Jonney

Description

@Jonney

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

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