File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ class Worker
76
76
*
77
77
* @var int
78
78
*/
79
- const DEFAUL_BACKLOG = 1024 ;
80
-
79
+ const DEFAULT_BACKLOG = 1024 ;
81
80
/**
82
81
* Max udp package size.
83
82
*
@@ -1320,7 +1319,7 @@ public function __construct($socket_name = '', $context_option = array())
1320
1319
if ($ socket_name ) {
1321
1320
$ this ->_socketName = $ socket_name ;
1322
1321
if (!isset ($ context_option ['socket ' ]['backlog ' ])) {
1323
- $ context_option ['socket ' ]['backlog ' ] = self ::DEFAUL_BACKLOG ;
1322
+ $ context_option ['socket ' ]['backlog ' ] = self ::DEFAULT_BACKLOG ;
1324
1323
}
1325
1324
$ this ->_context = stream_context_create ($ context_option );
1326
1325
}
@@ -1426,7 +1425,7 @@ public function run()
1426
1425
//Update process state.
1427
1426
self ::$ _status = self ::STATUS_RUNNING ;
1428
1427
1429
- // Eegister shutdown function for checking errors.
1428
+ // Register shutdown function for checking errors.
1430
1429
register_shutdown_function (array ("\\Workerman \\Worker " , 'checkErrors ' ));
1431
1430
1432
1431
// Set autoload root path.
You can’t perform that action at this time.
0 commit comments