diff --git a/src/hlua.c b/src/hlua.c index c05b42fa5..72e3d2140 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -3232,6 +3232,7 @@ static int hlua_socket_write_yield(struct lua_State *L,int status, lua_KContext WILL_LJMP(luaL_error(L, "out of memory")); } xref_unlock(&socket->xref, peer); + sc_need_room(sc, channel_recv_max(&s->req) + 1); MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_socket_write_yield, TICK_ETERNITY, 0)); return 0; }