Skip to content

Pooled connection timeout in pingConnection method #2621

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants