• Felix Lange's avatar
    rpc: attempt to fix ping/pong logic race (#27733) · 8f8ef2bc
    Felix Lange authored
    This should fix #27726. With enough load, it might happen that the SetPongHandler 
    callback gets invoked before the call to SetReadDeadline is made in pingLoop. When 
    this occurs, the socket will end up with a 30s read deadline even though it got the pong,
    which will lead to a timeout.
    
    The fix here is processing the pong on pingLoop, synchronizing with the code that 
    sends the ping.
    8f8ef2bc
Name
Last commit
Last update
..
testdata Loading commit data...
client.go Loading commit data...
client_example_test.go Loading commit data...
client_opt.go Loading commit data...
client_opt_test.go Loading commit data...
client_test.go Loading commit data...
context_headers.go Loading commit data...
doc.go Loading commit data...
endpoints.go Loading commit data...
errors.go Loading commit data...
handler.go Loading commit data...
http.go Loading commit data...
http_test.go Loading commit data...
inproc.go Loading commit data...
ipc.go Loading commit data...
ipc_js.go Loading commit data...
ipc_unix.go Loading commit data...
ipc_windows.go Loading commit data...
json.go Loading commit data...
metrics.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
service.go Loading commit data...
stdio.go Loading commit data...
subscription.go Loading commit data...
subscription_test.go Loading commit data...
testservice_test.go Loading commit data...
types.go Loading commit data...
types_test.go Loading commit data...
websocket.go Loading commit data...
websocket_test.go Loading commit data...