TCP keepalive on server side #396
Unanswered
Judochopalots
asked this question in
Q&A
Replies: 1 comment 5 replies
-
how do you use that feature? What is your goal? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is more of a question than an issue.
Is there currently a way to set TCP keepalive on the server socket?
I haven't tried it yet, but it looks to be possible to do this after the socket is opened. But I think it would be nicer if it was integrated into the server config
Best regards,
Nick
edit 1:
So I've found the point where the server is being created.
opcua-asyncio/asyncua/server/binary_server_asyncio.py
Line 129 in cf278b5
I'm not sure how I can expose the socket (or if it's even possible). And if it is possible, is there a way to enable it like written here. It's straight forward when using the built in socket library.
edit 2:
Since the socket objects are available through the returned Server object, is it as simple as adding something like this just after the server is created?
Beta Was this translation helpful? Give feedback.
All reactions