mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 18:16:30 +03:00
updates ames to always allocate 2K bytes on read
This commit is contained in:
parent
99312b86cb
commit
d23e55356f
@ -30,8 +30,11 @@ _ames_alloc(uv_handle_t* had_u,
|
|||||||
uv_buf_t* buf
|
uv_buf_t* buf
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
void* ptr_v = c3_malloc(len_i);
|
// we allocate 2K, which gives us plenty of space
|
||||||
*buf = uv_buf_init(ptr_v, len_i);
|
// for a single ames packet (max size 1060 bytes)
|
||||||
|
//
|
||||||
|
void* ptr_v = c3_malloc(2048);
|
||||||
|
*buf = uv_buf_init(ptr_v, 2048);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* _ames_free(): contrasting free.
|
/* _ames_free(): contrasting free.
|
||||||
|
Loading…
Reference in New Issue
Block a user