HttpRequest: write whole request to socket

Better performance by using a single write, and some servers may not be
happy about getting so many TCP fragments for the HTTP header.

Change-Id: If7139e2a7748ea423d470676e70bd523a89031b2
Reviewed-on: https://review.haiku-os.org/c/909
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Adrien Destugues
2019-01-27 07:55:55 +00:00
committed by waddlesplash
parent 27aefde9fd
commit 1322d50732
2 changed files with 15 additions and 11 deletions
+2 -2
View File
@@ -68,8 +68,8 @@ private:
status_t _ProtocolLoop();
status_t _MakeRequest();
void _SendRequest();
void _SendHeaders();
BString _SerializeRequest();
BString _SerializeHeaders();
void _SendPostData();
void _ParseStatus();