Skip to content

Commit

Permalink
[HTTP] Wait for response before disconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Sep 4, 2015
1 parent 056a083 commit d0a8db1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions palaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ class PLVHTTPSocket : public CSocket {
if (sContent.length() > 0) {
Write(sContent);
}

Close(Csock::CLT_AFTERWRITE);
}

void ReadLine(const CString& sData) {
Expand Down Expand Up @@ -160,11 +158,13 @@ class PLVHTTPSocket : public CSocket {
}

case Body: {
Close(Csock::CLT_AFTERWRITE);
break;
}

case Closed: {
break;
Close(Csock::CLT_AFTERWRITE);
break;
}
}
}
Expand Down

0 comments on commit d0a8db1

Please sign in to comment.