You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add bytesWritten and bytesRead fields to the Socket struct (type uint64). bytesWritten needs to be synchronized by the embedded mutex. bytesRead doesn't need to be synchronized because reading isn't concurrency-safe anyway (sockets are read only from the dedicated client goroutine).
Export copies of these fields in (*Client).AllSessionData, make them visible in NS CLIENTS LIST and possibly other places
Seems easy enough to add a uint64 counter to each
Socket
for this --- could be useful for abuse detection later on.The text was updated successfully, but these errors were encountered: