Skip to content

Commit

Permalink
Reduce wait for data delay
Browse files Browse the repository at this point in the history
Waiting for 1 second when no data is available for reading is too much and makes the communication very slow. I have reduced it to 20 miliseconds.
  • Loading branch information
pablorodiz committed May 19, 2016
1 parent 086f562 commit 57c768a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class HttpClient : public Client

// Number of milliseconds that we wait each time there isn't any data
// available to be read (during status code and header processing)
static const int kHttpWaitForDataDelay = 1000;
static const int kHttpWaitForDataDelay = 20;
// Number of milliseconds that we'll wait in total without receiveing any
// data before returning HTTP_ERROR_TIMED_OUT (during status code and header
// processing)
Expand Down

0 comments on commit 57c768a

Please sign in to comment.