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

Pooled connection timeout in pingConnection method #2621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arebordelo
Copy link

If the firewall drops packets or they are lost on the network, the pingConnection method in X ms drops this connection and gets a new one, and does not wait indefinitely the response. The time will be configured in networkPingTimeout property (in milliseconds).
To reproduce this execute this in the database machine:
sudo iptables -D INPUT -p tcp --sport $i -j DROP; sudo iptables -D OUTPUT -p tcp --dport $i -j DROP
$i -> port of the connections

If the firewall drops packets or they are lost on the network, the pingConnection method in X ms drops this connection and gets a new one, and does not wait indefinitely the response. The time will be configured in networkPingTimeout property (in milliseconds).
To reproduce this execute this in the database machine:
 sudo iptables -D INPUT -p tcp --sport $i -j DROP; sudo iptables -D OUTPUT -p tcp --dport $i -j DROP
 $i -> port of the connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants