Skip to content

asyncio.start_server, number of connections and then lock-up #15762

Discussion options

You must be logged in to vote

My experience with asyncio thus far has been with an HTTP server, that closes the connection after each request is serviced, and an FTP server that keeps a control open until the user logs out. So, you can do either. But, you can only have so many open connections. I think the default is five, but I could be wrong.

If the client is making a connection, sending something, then closing the connection, you should be closing on the server side as well. Otherwise, you're going to end up with a bunch of connections tied up in a FINWAIT state. If you've got a tool like netstat on your client side, you can see it. Eventually, the client will time out and drop these. That's probably why it starts …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@davefes
Comment options

@davefes
Comment options

@DavesCodeMusings
Comment options

Answer selected by davefes
@davefes
Comment options

@DavesCodeMusings
Comment options

@davefes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants