limit the timeout of udprelay

This commit is contained in:
Max Lv
2014-12-16 10:59:53 +08:00
parent 2a6c28e185
commit ee8b55e2c8
+1 -1
View File
@@ -914,7 +914,7 @@ int init_udprelay(const char *server_host, const char *server_port,
setnonblocking(serverfd);
server_ctx = new_server_ctx(serverfd);
server_ctx->timeout = timeout;
server_ctx->timeout = min(timeout, 5);
server_ctx->method = method;
server_ctx->iface = iface;
server_ctx->conn_cache = conn_cache;