azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Host should handle client disconnects received in FrontEnd when Functions are executing

Open satvu opened this issue 3 years ago • 1 comments

Investigative information

Result of CRI. Due to an update in the FrontEnd, the FrontEnd table will log 400.604 errors (client gone, client disconnected), but the host will continue executing the request from that same client despite the client disconnecting during execution. The following pattern is present in the logs, chronologically:

  1. FunctionsLogs logs HttpRequestExecuting.
  2. FrontEnd logs 400.604 error because the client disconnects.
  3. FunctionsLogs eventually logs HttpRequestExecuted shortly after and returns the work done by the Function, ignoring/not knowing about the client disconnect.

Expected behavior

When the host receives client disconnect information it should cancel the request execution (mostly likely using cancellation tokens).

Actual behavior

Host continues execution despite the client disconnect.

satvu avatar Oct 28 '22 16:10 satvu

Hi team! Anyone looking at this issue?

jharbieh-microsoft avatar Jun 28 '24 18:06 jharbieh-microsoft

@jharbieh-microsoft Are you currently observing this behavior? We will have to re-evaluate this issue as we have made potentially related updates to cancellation handling/flow since the original issue was opened.

satvu avatar Jul 09 '24 21:07 satvu