Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
Minor fix about proper buffer size to match each OS (#86)
Browse files Browse the repository at this point in the history
libtuv-DCO-1.0-Signed-off-by: Youngil Choi [email protected]
  • Loading branch information
yichoi authored Aug 22, 2017
1 parent c0594a8 commit 7428141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1155,9 +1155,9 @@ static void uv__read(uv_stream_t* stream) {

buf = uv_buf_init(NULL, 0);
#if defined(__NUTTX__) || defined(__TIZENRT__)
stream->alloc_cb((uv_handle_t*)stream, 64 * 1024, &buf);
#else
stream->alloc_cb((uv_handle_t*)stream, 2 * 1024, &buf);
#else
stream->alloc_cb((uv_handle_t*)stream, 64 * 1024, &buf);
#endif
if (buf.base == NULL || buf.len == 0) {
/* User indicates it can't or won't handle the read. */
Expand Down

0 comments on commit 7428141

Please sign in to comment.