mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
fix mWaitConnectConns when timeout is zero
This commit is contained in:
parent
ca1630a6b4
commit
46eb148682
@ -246,7 +246,8 @@ void Handler::postConnectConnectionEvent()
|
|||||||
if (!ret) {
|
if (!ret) {
|
||||||
s->setStatus(Multiplexor::ErrorEvent);
|
s->setStatus(Multiplexor::ErrorEvent);
|
||||||
} else {
|
} else {
|
||||||
if (s->isShared() && !mWaitConnectConns.exist(s)) {
|
long timeout = mProxy->serverPool()->serverTimeout();
|
||||||
|
if (s->isShared() && !mWaitConnectConns.exist(s) && timeout > 0) {
|
||||||
mWaitConnectConns.push_back(s);
|
mWaitConnectConns.push_back(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user