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
Change the channel to a buffered channel with capacity 1. This ensures
that the goroutine can always complete the send, even if the caller has
already returned due to context cancellation. The response will simply
sit in the channel until it is garbage collected, avoiding the leak.
Copy file name to clipboardExpand all lines: cl/sentinel/httpreqresp/server.go
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -45,21 +45,21 @@ the following headers have meaning when passed in to the request:
45
45
REQRESP-TOPIC - the topic to request with
46
46
REQRESP-EXPECTED-CHUNKS - this is an integer, which will be multiplied by 10 to calculate the amount of seconds the peer has to respond with all the data
0 commit comments