Skip to content

Commit

Permalink
added support for pipelined http/1.1 requests for ngrest server
Browse files Browse the repository at this point in the history
optimized reading request for client, may do significant performance boost for small requests
  • Loading branch information
loentar committed Feb 16, 2017
1 parent 0ff43a8 commit 37de177
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 280 deletions.
6 changes: 3 additions & 3 deletions core/server/src/ClientCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ struct sockaddr_storage;
namespace ngrest {

/**
* @brief write status code
* @brief status code
*/
enum class WriteStatus {
enum class Status {
Success, //!< no action
Done, //!< response finished, remove socket from write queue
Again, //!< response processedd partially, add socket to write queue
Expand Down Expand Up @@ -105,7 +105,7 @@ class ClientCallback {
* @param fd client socket descriptor
* @return write status code
*/
virtual WriteStatus readyWrite(Socket fd) = 0;
virtual Status readyWrite(Socket fd) = 0;

/**
* @brief set calback to close connection
Expand Down
Loading

0 comments on commit 37de177

Please sign in to comment.