Closed amscanne closed 9 years ago
Accessing r.next in the loop on line 273 is racy. As you've already notified r.Done, ReqFree() will be called shortly to free the request and set r.next to nil.
This commit moves list manipulation to the recv() function only.
Accessing r.next in the loop on line 273 is racy. As you've already notified r.Done, ReqFree() will be called shortly to free the request and set r.next to nil.
This commit moves list manipulation to the recv() function only.