From c50f171f2c9922c6d156f33f12af40ebbcade70d Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 5 Aug 2004 15:48:09 +0000 Subject: [PATCH] findclient-print-stolen-clients-20040805 when a client is "stolen" due to a race, print it. --- src/viced/host.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viced/host.c b/src/viced/host.c index 1f2651dd62..2e99984a7f 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1545,6 +1545,9 @@ h_FindClient_r(struct rx_connection *tcon) oldClient = (struct client *)rx_GetSpecific(tcon, rxcon_client_key); if (oldClient && oldClient->tcon == tcon) { oldClient->tcon = (struct rx_connection *)0; + ViceLog(0, ("FindClient: client %x(%x) already had conn %x (host %x), stolen by client %x(%x)\n", + oldClient, oldClient->sid, tcon, + rx_HostOf(rx_PeerOf(tcon)), client, client->sid)); /* rx_SetSpecific will be done immediately below */ } client->tcon = tcon;