mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
WebSocketServlet sample
This commit is contained in:
parent
913fc1d187
commit
87ba2d6bbe
@ -77,7 +77,7 @@ service http_server {
|
||||
|
||||
# 用 select 进行循环时的时间间隔
|
||||
# 单位为秒
|
||||
ioctl_delay_sec = 1
|
||||
ioctl_delay_sec = 0
|
||||
# 单位为微秒
|
||||
ioctl_delay_usec = 100
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user