fix read of 0 bytes problem and make buffer null terminated before using strstr
on debian 7, ws_raw_read returns 0 when client side disconnect the socket, no HUP is detected and it resulted in an infinite loop.
正在显示
请
注册
或者
登录
后发表评论
on debian 7, ws_raw_read returns 0 when client side disconnect the socket, no HUP is detected and it resulted in an infinite loop.