mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 05:36:22 +08:00
Return the same job on retry #4584
This commit is contained in:
@@ -483,16 +483,21 @@ TCPSocket::serviceConnected(ISocketMultiplexerJob* job,
|
||||
}
|
||||
|
||||
const void* buffer = m_outputBuffer.peek(buffSize);
|
||||
|
||||
if (isSecure()) {
|
||||
if (isSecureReady()) {
|
||||
s_retryOutputBufferSize = buffSize;
|
||||
status = secureWrite(buffer, buffSize, bytesWrote);
|
||||
if (status > 0) {
|
||||
s_retryOutputBufferSize = 0;
|
||||
|
||||
}
|
||||
else if (status < 0) {
|
||||
return NULL;
|
||||
}
|
||||
else if (status == 0) {
|
||||
s_retryOutputBufferSize = buffSize;
|
||||
return job;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return job;
|
||||
@@ -553,6 +558,9 @@ TCPSocket::serviceConnected(ISocketMultiplexerJob* job,
|
||||
if (status < 0) {
|
||||
return NULL;
|
||||
}
|
||||
else if (status == 0) {
|
||||
return job;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return job;
|
||||
|
||||
Reference in New Issue
Block a user