Re: [Sqlrelay-discussion] listener hang with open database port
Brought to you by:
mused
|
From: Renat S. <sr...@st...> - 2010-05-27 20:20:54
|
27.05.2010 21:28, Cal Heldenbrand пишет:
> Which seemed to work fine, but I'm not sure that's the correct place
> to decrement that counter.
>
> Any ideas on that?
>
Session counter is incremented in listener when client session is
authorized. It is decremented when connection finishs processing client
session's requests. What happens with you client session? Does it get an
error or what? Does listener complete socket handoff procedure to
connection? When handoff exits with error, there might be the best place
to decrement counter?
----
if (dynamicscaling) {
incrementSessionCount();
}
passstatus=handOffClient(clientsock);
// addition:
if (!passstatus) {
decrementSessionCount(); // this function is
not exist yet
}
----
--
Renat
|