This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap the TcpStream in a BufferedStream.
As it stood, the header-reading part of a client used a BufferedReader which was then discarded, although it had probably consumed at least the start of the request body. I had been using TcpStream, BufferedReader<TcpStream> and BufferedWriter<TcpStream> in different places. This was entirely unworkable, so I've replaced them with immediately wrapping the TcpStream in a BufferedStream and using it everywhere. This makes things sane for now. Alas, this also introduces a rather severe regression owing to an as-yet-unidentified Rust bug, for the call to http::client::response::ResponseReader::construct is causing a segfault. That is, execution is failing after the caller has begun calling the function, but before construct has begun to execute. This renders the client inoperable for the moment. --HG-- extra : amend_source : 9263d96068f59080326179877528b84946587e85
- Loading branch information
1 parent
f4ea90c
commit f782362
Showing
7 changed files
with
92 additions
and
99 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
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
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
Oops, something went wrong.