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 d671e03 commit 9c8844d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext-src/swoole_http_response.cc
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ bool HttpContext::start_send(const char *body, size_t length) {

protocol_length = http_byte_buffer.get_protocol_length(body ? length : 0);
bool result;
if (protocol_length > 2048) {
if (UNEXPECTED((SwooleG.stack_size >> 1) < protocol_length)) {
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 9c8844d

Please sign in to comment.