Skip to content

Commit b1f323f

Browse files
authored
Merge pull request #90 from victorruan/master
change DEFAUL_BACKLOG!
2 parents 487e734 + ccbbdf2 commit b1f323f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Worker.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ class Worker
7676
*
7777
* @var int
7878
*/
79-
const DEFAUL_BACKLOG = 1024;
80-
79+
const DEFAULT_BACKLOG = 1024;
8180
/**
8281
* Max udp package size.
8382
*
@@ -1320,7 +1319,7 @@ public function __construct($socket_name = '', $context_option = array())
13201319
if ($socket_name) {
13211320
$this->_socketName = $socket_name;
13221321
if (!isset($context_option['socket']['backlog'])) {
1323-
$context_option['socket']['backlog'] = self::DEFAUL_BACKLOG;
1322+
$context_option['socket']['backlog'] = self::DEFAULT_BACKLOG;
13241323
}
13251324
$this->_context = stream_context_create($context_option);
13261325
}
@@ -1426,7 +1425,7 @@ public function run()
14261425
//Update process state.
14271426
self::$_status = self::STATUS_RUNNING;
14281427

1429-
// Eegister shutdown function for checking errors.
1428+
// Register shutdown function for checking errors.
14301429
register_shutdown_function(array("\\Workerman\\Worker", 'checkErrors'));
14311430

14321431
// Set autoload root path.

0 commit comments

Comments
 (0)