diff --git a/lib_acl_cpp/samples/http/webSocketServlet/WebSocketServlet.cf b/lib_acl_cpp/samples/http/webSocketServlet/WebSocketServlet.cf index 8c16a41f4..75f5c51cd 100644 --- a/lib_acl_cpp/samples/http/webSocketServlet/WebSocketServlet.cf +++ b/lib_acl_cpp/samples/http/webSocketServlet/WebSocketServlet.cf @@ -77,7 +77,7 @@ service http_server { # 用 select 进行循环时的时间间隔 # 单位为秒 - ioctl_delay_sec = 1 + ioctl_delay_sec = 0 # 单位为微秒 ioctl_delay_usec = 100 diff --git a/lib_acl_cpp/samples/http/webSocketServlet/WebsocketServlet_impl.cpp b/lib_acl_cpp/samples/http/webSocketServlet/WebsocketServlet_impl.cpp index 2155e5292..6727ef556 100644 --- a/lib_acl_cpp/samples/http/webSocketServlet/WebsocketServlet_impl.cpp +++ b/lib_acl_cpp/samples/http/webSocketServlet/WebsocketServlet_impl.cpp @@ -197,6 +197,8 @@ bool WebsocketServlet_impl::saveFile(unsigned long long len) nread_ = 0; filename_.clear(); fp_.close(); + return sendText("+ok"); + } else { + return true; } - return true; }