Skip to content

Clarification: purpose of conn_lock & timeout configuration #264

Answered by paullouisageneau
ofacklam asked this question in Q&A
Discussion options

You must be logged in to vote

My question would be:

  • is this expected behavior?
  • is it really required to have the conn_lock for the whole duration of resolving the servers?

No, this is an oversight. conn_lock is used to lock the connection thread for this agent, depending on the concurrency mode, and the lock should be released while resolving the addresses as it can take a while.

  • or is there a way to configure the address lookup timeout to make this process snappier?

Sadly the getaddrinfo() method does not allow the caller to specify a timeout, it is a system setting (for instance it can be set it /etc/resolve.conf on Linux).

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@paullouisageneau
Comment options

Comment options

You must be logged in to vote
2 replies
@paullouisageneau
Comment options

@ofacklam
Comment options

Answer selected by ofacklam
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants