Skip to content

Commit

Permalink
Update: poll_thread_num alias reactor_num
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Dec 24, 2013
1 parent 8c494cb commit 74bdf28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions swoole.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ PHP_FUNCTION(swoole_server_set)
convert_to_long(*v);
serv->poll_thread_num = (int)Z_LVAL_PP(v);
}
if (zend_hash_find(vht, ZEND_STRS("reactor_num"), (void **)&v) == SUCCESS)
{
convert_to_long(*v);
serv->poll_thread_num = (int)Z_LVAL_PP(v);
}
//writer_num
if (zend_hash_find(vht, ZEND_STRS("writer_num"), (void **)&v) == SUCCESS)
{
Expand Down

0 comments on commit 74bdf28

Please sign in to comment.