Return the same job on retry #4584
This commit is contained in:
parent
0680c33909
commit
bbf53bb9b8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue