Fixed websocket example, and websocket callback calling logic.

This commit is contained in:
Sergey Lyubka committed 2014-01-17 10:17:15 +00:00
1 parent 65c1278975
commit 7690f9e34b
7 files changed
+95 -194

No files matched your search

+1 -1
View File
@@ -1940,7 +1940,7 @@ static void write_to_client(struct connection *conn) {
conn->num_bytes_sent += n;
}
if (conn->endpoint_type == EP_USER) {
if (conn->endpoint_type == EP_USER && !conn->mg_conn.is_websocket) {
conn->mg_conn.wsbits = conn->flags & CONN_CLOSE ? 1 : 0;
call_uri_handler(conn);
}