-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The server was always expecting the content-length in addition to the current buffer the client sent. But if the client sent everything, the server would go back to read the content length again, which would hang the server and the client would never send the information the server wanted. I updated (repaired? since this worked before...) the code so the server computes whether the buffer plus content length was already received. If it was it skips the read for more data, since there isn't any. This seems to work so far. Will continue testing.
- Loading branch information
1 parent
e9aaae5
commit 26cae6f
Showing
3 changed files
with
88 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ config.mk | |
server.tar.xz | ||
.DS_Store | ||
crvr | ||
tests/ | ||
*.swo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters