microsoft / vso-agent

Visual Studio Team Services and TFS agent for Mac OSX and Linux
MIT License
131 stars 57 forks source link

Agent will not reconnect after network interruption #182

Closed tschleining closed 8 years ago

tschleining commented 8 years ago

On OSX if you have the agent running interactively and the network connection is interrupted, the agent will never reconnect. You have to kill the process an restart it.

bryanmacfarlane commented 8 years ago

That's not the case and I just reverified.

The agent opens an http long poll with the server listening for build messages. It keeps looping and steps off 15 seconds at a time reconnecting. Today I verified with disconnecting the network cables, closing the laptop, putting it to sleep etc... Once it connected back up it started listening again.

A specific build can get interupted but the agent session will reconnect and listen for more messages.

If you have more details and trace logs (_diag folder under the agent) then reactivate.