> I had tried that as well, to no avail. I suspect that in our setup, > the > tcpcheck > from LVS/keepalived was closing the connection so quickly after > discovering > that > the port was open, the socket was closed even before ->peername was > called. > > -Matthew
Yep, by the time the LVS' tcpcheck accept()s are reaching peer_info_from_socket(), $client/sock->connected is returning undef, so the client must have disconnected.