Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Feb 29, 2024
1 parent b0f433f commit 1d9e270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext-src/swoole_http_response.cc
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ bool HttpContext::start_send(const char *body, size_t length) {

protocol_length = http_byte_buffer.get_protocol_length(body ? length : 0);
bool result;
printf("%ld, %d, %d\n", protocol_length, SwooleG.stack_size, protocol_length > (SwooleG.stack_size / 2));
if (protocol_length > SwooleG.stack_size) {

if (protocol_length > 16777216 >> 1) {
char *http_protocol = (char *) emalloc(protocol_length);
http_byte_buffer.write_protocol(http_protocol, body, length);
result = send(this, http_protocol, protocol_length);
Expand Down

0 comments on commit 1d9e270

Please sign in to comment.