Ability to set TCP keepalive to detect/closed dead connections#132
Ability to set TCP keepalive to detect/closed dead connections#132eLvErDe wants to merge 1 commit intoaio-libs:masterfrom
Conversation
|
I see a better solutions here, make |
Except when using as context manager, this is why I did this that way |
|
You always can use your own context manager with socket tune after |
Well it's your call anyway. For me these options are quite important so I like the idea of having them exposed as parameters with proper documentation |
|
Sorry for a delay. I've just released, that sock = client.stream.writer.get_extra_info("socket")
...And I think there should not be second network connection abstraction like |
Hello,
I had trouble on a server having tones of dead connection to remote FTP server in CLOSED_WAIT state. I'm not sure what exactly caused that (I suspect the remote server had issues) but still, TCP keepalive mecanism is here to avoid this.
So here's a new kwarg to aioftp Client providing the ability to request TCP keepalive.
Regards, Adam.