-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Adjacency works fine when not passing a different srv record when using curl.
However, the result of this call to an adjacency pod has some issues
curl ip_of_ajacency_pod:8080/?srv=_imaps._tcp.gmail.com.All adjacency pods will make an http request to something like http://imap.gmail.com:993/ping
They will just get errors when making the request. Most likely a connection reset by peer. Technically, there is still a tcp handshake where the peer sends the RST flag to reset the connection. Should we use this to determine the duration?
What if a srv record uses udp as a protocol?
An alternativ would be to make a real ping probe, But that would only go to the host/container and not the specific service.
If we don't want to use a real ping, we should limit the input srv to tcp protocol only and if we don't want to use a failed http request due to a "reset by peer" error, we should limit the service to http in the srv records.