Commits
Seven Du committed b87d42c41e6
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.
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.