mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
bugfix: max connection must great than 0
This commit is contained in:
@@ -244,6 +244,10 @@ gate_init(struct gate *g , struct skynet_context * ctx, char * parm) {
|
||||
skynet_error(ctx, "Invalid gate parm %s",parm);
|
||||
return 1;
|
||||
}
|
||||
if (max <=0 ) {
|
||||
skynet_error(ctx, "Need max conntection");
|
||||
return 1;
|
||||
}
|
||||
if (header != 'S' && header !='L') {
|
||||
skynet_error(ctx, "Invalid data header style");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user