Closed lukechampine closed 3 years ago
In RPCRead, the host needs to continuously attempt to Read from the renter while it simultaneously Writes responses to it. This causes a data race on the err and closed fields of Session. Fixed by adding a mutex that guards these fields.
RPCRead
err
closed
Session
Fixes #154
Goober, test and merge
In
RPCRead
, the host needs to continuously attempt to Read from the renter while it simultaneously Writes responses to it. This causes a data race on theerr
andclosed
fields ofSession
. Fixed by adding a mutex that guards these fields.Fixes #154