Files
nomad/command/agent
Mahmood Ali ab4b42f4f4 exec: http: close websocket connection gracefully
In this loop, we ought to close the websocket connection gracefully when
the StreamErrWrapper reaches EOF.

Previously, it's possible that that we drop the last few events or skip sending
the websocket closure. If `handler(handlerPipe)` returns and `cancel` is called,
before the loop here completes processing streaming events, the loop exits
prematurely without propagating the last few events.

Instead here, the loop continues until we hit `httpPipe` EOF (through
`decoder.Decode`), to ensure we process the events to completion.
2021-05-24 13:37:23 -04:00
..
2020-05-28 15:40:17 -04:00
2018-10-16 16:56:55 -07:00
2021-04-16 16:36:07 -06:00
2021-05-07 13:58:40 -04:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2018-02-15 13:59:02 -08:00
2019-01-22 15:44:31 -08:00
2019-01-22 15:44:31 -08:00