Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kHttpServer_SetReadBuffers ( kHttpServer  server,
kSSize  socketSize,
kSSize  clientSize 
)

Sets the size of connection read buffers.

Socket buffers decouple the sender and receiver, so that the sender does not need to block while waiting for the receiver to receive all bytes. Client buffers improve the efficiency of the client when performing several small read operations.

By default, the client buffer size and socket buffer size are both 32 KB.

This function can only be called while the server is stopped.

Parameters
serverServer object.
socketSizeSize of the read buffer maintained by the underlying socket (-1 to leave unchanged).
clientSizeSize of the read buffer maintained by the client object (-1 to leave unchanged).
Returns
Operation status.