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
#285 introduced a new flag called --sync-forever on the agent, which allows for dynamically updating the server count returned from the server to the client. However, enabling --sync-forever results in the agent calling Connect() repeatedly, which is evident from the "Connect to" messages in the following logs:
It seems unexpected that --sync-forever would force a redial of the stream even though there are no server count updates. More importantly, it seems possible that calling Connect() repeatedly could be disruptive to existing connections since the stream for an agent as seen by the server could change mid-flight (although I'm mostly speculating about this and don't have evidence this is true).
I also noticed that after enabling --sync-forever, I see the following messages from the agent occasionally which could be related:
E0331 07:32:58.612213 1 client.go:371] "could not read stream" err="rpc error: code = Unavailable desc = closing transport due to: connection error: desc = \"error reading from server: EOF\", received prior goaway: code: ENHANCE_YOUR_CALM, debug data: \"too_many_pings\"
From the gRPC docs, this seems related to keepalives.
The text was updated successfully, but these errors were encountered:
The agent calling Connect() repeatedly (forever) is expected. However it should not effect the existing streams/tunnels. It should not be possible to change the stream to a server mid-flight. The handshake is supposed to always cancel the new connection/stream when it realizes this is a connection/stream to an already connected server.
#285 introduced a new flag called
--sync-forever
on the agent, which allows for dynamically updating the server count returned from the server to the client. However, enabling--sync-forever
results in the agent callingConnect()
repeatedly, which is evident from the "Connect to" messages in the following logs:It seems unexpected that
--sync-forever
would force a redial of the stream even though there are no server count updates. More importantly, it seems possible that calling Connect() repeatedly could be disruptive to existing connections since the stream for an agent as seen by the server could change mid-flight (although I'm mostly speculating about this and don't have evidence this is true).I also noticed that after enabling
--sync-forever
, I see the following messages from the agent occasionally which could be related:From the gRPC docs, this seems related to keepalives.
The text was updated successfully, but these errors were encountered: