-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
SocketListener ignores peer address #839
Comments
You can always get the peer address from the socket object itself by calling Currently the "high level" But, import trio
async def server(stream):
print("Got connection from:", stream.socket.getpeername())
trio.run(trio.serve_tcp, server, 12345) And then if I do
I don't think there's any further todo item for trio here, so marking this closed, but feel free to continue discussion or reopen if you want. |
Oh, and if you're using |
I think @njsmith forgot to hit on the close button, so doing that now. Again, feel free to reopen! |
Whoops, thanks for the catch :-) |
Currently SocketListener ignores peer address returned socket.accept
trio/trio/_highlevel_socket.py
Line 371 in b208624
What is rationale behind this and what can be done to receive this information?
The text was updated successfully, but these errors were encountered: