Skip to content

Commit

Permalink
fix #2610
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Jun 14, 2019
1 parent 7edcbb5 commit a5338ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/swoole.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ int clock_gettime(clock_id_t which_clock, struct timespec *t);

#define SWOOLE_MAJOR_VERSION 4
#define SWOOLE_MINOR_VERSION 3
#define SWOOLE_RELEASE_VERSION 4
#define SWOOLE_RELEASE_VERSION 5
#define SWOOLE_EXTRA_VERSION ""
#define SWOOLE_VERSION "4.3.4"
#define SWOOLE_VERSION_ID 40304
#define SWOOLE_VERSION "4.3.5"
#define SWOOLE_VERSION_ID 40305
#define SWOOLE_BUG_REPORT \
"A bug occurred in Swoole-v" SWOOLE_VERSION ", please report it.\n"\
"The Swoole developers probably don't know about it,\n"\
Expand Down
2 changes: 2 additions & 0 deletions src/server/worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,10 @@ int swWorker_loop(swServer *serv, int worker_id)
worker = swServer_get_worker(serv, i);
pipe_socket = swReactor_get(SwooleG.main_reactor, worker->pipe_master);
pipe_socket->buffer_size = INT_MAX;
pipe_socket->fdtype = SW_FD_PIPE;
pipe_socket = swReactor_get(SwooleG.main_reactor, worker->pipe_worker);
pipe_socket->buffer_size = INT_MAX;
pipe_socket->fdtype = SW_FD_PIPE;
}

if (serv->dispatch_mode == SW_DISPATCH_STREAM)
Expand Down

1 comment on commit a5338ba

@sandacn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

要不要加一个测试文件,避免以后出现类似的问题?

Please sign in to comment.