Skip to content

Commit

Permalink
fix tests[6]
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Aug 15, 2024
1 parent 9734deb commit 3ed78e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ jobs:
php --ri swoole
- name: Laravel Octane Tests
if: matrix.framework == 'Laravel Octane' && matrix.php-version != '8.0'
if: matrix.framework == 'Laravel Octane'
run: |
git clone https://github.com/laravel/octane.git --depth=1
cd octane/
composer update --prefer-dist --no-interaction --no-progress
vendor/bin/phpunit
- name: Hyperf Tests
if: matrix.framework == 'Hyperf' && matrix.php-version != '8.0'
if: matrix.framework == 'Hyperf' && matrix.php-version != '8.3'
env:
SW_VERSION: 'master'
MYSQL_VERSION: '5.7'
Expand Down
7 changes: 5 additions & 2 deletions src/os/process_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,9 @@ static int ProcessPool_worker_loop_with_task_protocol(ProcessPool *pool, Worker
pool->stream_info_->last_connection = conn;
} else {
n = worker->pipe_worker->read_sync(&out.buf, sizeof(out.buf));
if (n < 0 && errno != EINTR) {
swoole_sys_warning("read(%d) failed", worker->pipe_worker->fd);
}
}

/**
Expand Down Expand Up @@ -720,9 +723,9 @@ static int ProcessPool_worker_loop_with_stream_protocol(ProcessPool *pool, Worke
msg.data = pool->packet_buffer;
pool->stream_info_->last_connection = conn;
} else {
n = worker->pipe_worker->read(pool->packet_buffer, pool->max_packet_size_);
n = worker->pipe_worker->read_sync(pool->packet_buffer, pool->max_packet_size_);
if (n < 0 && errno != EINTR) {
swoole_sys_warning("[Worker#%d] read(%d) failed", worker->id, worker->pipe_worker->fd);
swoole_sys_warning("read(%d) failed", worker->pipe_worker->fd);
}
msg.data = pool->packet_buffer;
}
Expand Down

0 comments on commit 3ed78e4

Please sign in to comment.