]> Cypherpunks repositories - gostls13.git/commit
websocket: add mutex to make websocket full-duplex
authorFumitoshi Ukai <ukai@google.com>
Fri, 23 Sep 2011 01:49:24 +0000 (21:49 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 23 Sep 2011 01:49:24 +0000 (21:49 -0400)
commite4790b5fa4d2e29892ab162a3148311c738320b3
tree7927a2057f6c959fde4ae30eac3215436c7546ec
parent3dc3fa0d8cda00202d1c2162cf6d93789822e7d6
websocket: add mutex to make websocket full-duplex

One benefit of websocket is that it is full-duplex so that it could
send and receive at the same time.
This CL makes websocket goroutine safe, so user could use websocket
both on goroutine for read and on goroutine for write.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5058043
src/pkg/websocket/hixie.go
src/pkg/websocket/hybi.go
src/pkg/websocket/websocket.go