WebSocketServlet sample

This commit is contained in:
zsx 2018-12-06 16:29:54 +08:00
parent 913fc1d187
commit 87ba2d6bbe
2 changed files with 4 additions and 2 deletions

View File

@ -77,7 +77,7 @@ service http_server {
# select 进行循环时的时间间隔 # select 进行循环时的时间间隔
# 单位为秒 # 单位为秒
ioctl_delay_sec = 1 ioctl_delay_sec = 0
# 单位为微秒 # 单位为微秒
ioctl_delay_usec = 100 ioctl_delay_usec = 100

View File

@ -197,6 +197,8 @@ bool WebsocketServlet_impl::saveFile(unsigned long long len)
nread_ = 0; nread_ = 0;
filename_.clear(); filename_.clear();
fp_.close(); fp_.close();
return sendText("+ok");
} else {
return true;
} }
return true;
} }