Skip to content
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

rpcap: add timeout configuration on socket connect #1091

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GabrielGanne
Copy link
Contributor

@GabrielGanne GabrielGanne commented Feb 14, 2022

Hi,

This is a small proposal to allow to configure the connection timeout for rpcap sockets.
This is just to avoid waiting minutes for nothing should the connect() call fail.

Best regards,

@infrastation
Copy link
Member

Thank you for preparing these changes and addressing the CI feedback. Please do not include the regenerated configure script into the commits.

Signed-off-by: Kevin Boulain <[email protected]>
Signed-off-by: Gabriel Ganne <[email protected]>
@GabrielGanne
Copy link
Contributor Author

Thank you for preparing these changes and addressing the CI feedback. Please do not include the regenerated configure script into the commits.

Done. Sorry, I forgot to clean them out of the PR.

@infrastation
Copy link
Member

The second commit ("rpcap: set keepalives on rpcap's control socket") is almost an exact copy of the changes from pull request #773, which still requires significant work to become good for merging (see the detailed comments there).

Allow to set a custom timeout to the connect to avoid waiting
minutes for nothing should the connect() call fail.

Signed-off-by: Kevin Boulain <[email protected]>
Signed-off-by: Gabriel Ganne <[email protected]>
@GabrielGanne
Copy link
Contributor Author

Hi @infrastation
Makes sense since it's the same original author. I should have seen it, sorry about that.

I'm willing to take over #773 and do the requested changes.
I'll also remove that commit from here.

@infrastation
Copy link
Member

@GabrielGanne, please go ahead with your version of the TCP keepalive patch.

@guyharris
Copy link
Member

guyharris commented Sep 19, 2022

Does this work for rpcap-over-TLS connections?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants