mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
parent
bf6011fc06
commit
1bd4eaab88
1 changed files with 10 additions and 7 deletions
|
|
@ -111,13 +111,16 @@ type Service struct {
|
||||||
//
|
//
|
||||||
// From Gorilla websocket docs:
|
// From Gorilla websocket docs:
|
||||||
//
|
//
|
||||||
// Connections support one concurrent reader and one concurrent writer.
|
// Connections support one concurrent reader and one concurrent writer. Applications are
|
||||||
// Applications are responsible for ensuring that no more than one goroutine calls the write methods
|
// responsible for ensuring that
|
||||||
// - NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression, SetCompressionLevel
|
// - no more than one goroutine calls the write methods
|
||||||
// concurrently and that no more than one goroutine calls the read methods
|
// NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression,
|
||||||
// - NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler, SetPingHandler
|
// SetCompressionLevel concurrently; and
|
||||||
// concurrently.
|
// - that no more than one goroutine calls the
|
||||||
// The Close and WriteControl methods can be called concurrently with all other methods.
|
// read methods NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler,
|
||||||
|
// SetPingHandler concurrently.
|
||||||
|
//
|
||||||
|
// The Close and WriteControl methods can be called concurrently with all other methods.
|
||||||
type connWrapper struct {
|
type connWrapper struct {
|
||||||
conn *websocket.Conn
|
conn *websocket.Conn
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue