Skip to content

Commit

Permalink
fix tests [4]
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Sep 14, 2024
1 parent 7cd6dd2 commit bb29bfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ext-src/swoole_process_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ static PHP_METHOD(swoole_process_pool, write) {
char *data;
size_t length;

if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &data, &length) == FAILURE) {
RETURN_FALSE;
}
ZEND_PARSE_PARAMETERS_START(1, 1)
Z_PARAM_STRING(data, length)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);

ProcessPool *pool = process_pool_get_and_check_pool(ZEND_THIS);
if (pool->ipc_mode != SW_IPC_SOCKET) {
Expand Down
4 changes: 0 additions & 4 deletions src/os/process_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,6 @@ int ProcessPool::run_with_stream_protocol(ProcessPool *pool, Worker *worker) {
pool->stream_info_->response_buffer = new String(SW_BUFFER_SIZE_STD);
}

if (pool->ipc_mode == SW_IPC_UNIXSOCK && pool->message_bus == nullptr) {
pool->create_message_bus();
}

QueueNode *outbuf = (QueueNode *) pool->packet_buffer;
outbuf->mtype = 0;

Expand Down

0 comments on commit bb29bfe

Please sign in to comment.