forked from FreeRTOS/coreHTTP
-
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.
Extend TransportInterface_t to differenciate between read timeouts an…
…d closed connections Some HTTP servers do not include a Content-Length header nor use chunked transfer encoding in their responses. In this situation, the server closes the underlying TCP connection to tell the client that the response has been completely read. Currently, this behaviour is not supported by coreHTTP, as llhttp is not able to detect the end of the response unless llhttp_finish() is called. This issue can be solved by adding a new return value to TransportRecv_t that allows coreHTTP to detect a closed TCP connection after all data has been read to then call llhttp_finish().
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 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
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