Skip to content

Commit bb48ddf

Browse files
authored
Fix a bug in SSL mode (#85)
1 parent 44ad282 commit bb48ddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trantor/net/inner/TcpConnectionImpl.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,8 @@ ssize_t TcpConnectionImpl::writeInLoop(const char *buffer, size_t length)
12841284
{
12851285
LOG_TRACE << "send in loop";
12861286
loop_->assertInLoopThread();
1287-
if (status_ != ConnStatus::Connected)
1287+
if (status_ != ConnStatus::Connected &&
1288+
status_ != ConnStatus::Disconnecting)
12881289
{
12891290
LOG_WARN << "Connection is not connected,give up sending";
12901291
return -1;

0 commit comments

Comments
 (0)