Clean socket shutdown in C version too.

Related to https://github.com/kanaka/noVNC/issues/58 (supporting Apple
Remote Desktop).
This commit is contained in:
Joel Martin 2012-03-23 12:17:50 -05:00
parent c31a21ea57
commit 96af996c1d
2 changed files with 2 additions and 1 deletions

View File

@ -10,5 +10,5 @@ websocket.o: websocket.c websocket.h
websockify.o: websockify.c websocket.h
clean:
rm -f websockify kumina *.o
rm -f websockify *.o

View File

@ -267,6 +267,7 @@ void proxy_handler(ws_ctx_t *ws_ctx) {
do_proxy(ws_ctx, tsock);
shutdown(tsock, SHUT_RDWR);
close(tsock);
}