mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 11:09:30 +03:00
updates proxy to always allocate 4K buffers on socket read
This commit is contained in:
parent
ad424fcbda
commit
52503a2add
@ -989,8 +989,11 @@ _proxy_alloc(uv_handle_t* had_u,
|
|||||||
size_t len_i,
|
size_t len_i,
|
||||||
uv_buf_t* buf)
|
uv_buf_t* buf)
|
||||||
{
|
{
|
||||||
void* ptr_v = c3_malloc(len_i);
|
// len_i is always 64k, so we're ignoring it
|
||||||
*buf = uv_buf_init(ptr_v, len_i);
|
// using fixed size 4K buffer for
|
||||||
|
// XX consider h2o_buffer_t, a pool, or something XX
|
||||||
|
void* ptr_v = c3_malloc(4096);
|
||||||
|
*buf = uv_buf_init(ptr_v, 4096);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* _proxy_write_free(): free uv_write struct and linked buffer
|
/* _proxy_write_free(): free uv_write struct and linked buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user