server: remove connection limit from tcl and telnet servers

Add constant CONNECTION_LIMIT_UNLIMITED which indicates a service
has no connection limit

Change-Id: I008d31264010c25fa44ca74eb6d5740eca38bee1
Signed-off-by: Austin Morton <austinpmorton@gmail.com>
Reviewed-on: http://openocd.zylin.com/2937
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
Austin Morton
2015-08-13 14:45:29 -04:00
committed by Paul Fertser
parent d28ab08cfa
commit 8bffcc0cd4
4 changed files with 10 additions and 5 deletions

View File

@@ -250,7 +250,7 @@ int tcl_init(void)
return ERROR_OK;
}
return add_service("tcl", tcl_port, 1,
return add_service("tcl", tcl_port, CONNECTION_LIMIT_UNLIMITED,
&tcl_new_connection, &tcl_input,
&tcl_closed, NULL);
}