httpServerMusync.Mutex// prevent concurrent access to the httpListener and httpServer
httpListenernet.Listener// listener for the http server
httpServerMusync.Mutex// prevent concurrent access to the httpListener and httpServer
httpListenernet.Listener// listener for the http server
httpRPCServer*Server// the node can only start 1 HTTP RPC server instance
)
@ -57,8 +55,7 @@ var (
typehttpMessageStreamstruct{
connnet.Conn// TCP connection
rw*bufio.ReadWriter// buffered where HTTP requests/responses are read/written from/to
currentReq*http.Request// pending request, codec can pass in a too small buffer for a single read
// we need to keep track of the current requests if it was not read at once
currentReq*http.Request// pending request, codec can pass in a too small buffer for a single read we need to keep track of the current requests if it was not read at once
payloadBytesReadint64// number of bytes which are read from the current request