C
C#8mo ago
Manaravak

HTTP Request Pending Time Unusually High

Can anyone throw out any ideas why my server (local dev) would hang on incoming http requests? I'm using minimal apis, ASP.Net Core 8. For example, the Chrome browser dev tools is showing pending for a few seconds ~4.5s (the "waiting for server response" portion) before the request is completed. My http request logger middleware is showing the entire request took ~3ms. This is happening for even one single request or when I'm doing parallel requests in my Vue 3 app, I'm seeing the same thing for parallel requests. This is only happening every 1 of 6 or so requests regardless if I'm spamming the request or giving a few seconds between each request. When the requests don't hang, the dev tools are showing anywhere from 3-10ms which lines up with the middleware logger, so I'm confident it's not the logger giving inaccurate times. Not even sure what issues could cause something like this. Or even how to figure it out. Any ideas? I'm assuming there something going on with processing the http request itself, before it even gets to my logger. It's a local dev server, aspnet core 8, 1. browser -> 2. HttpLoggerMiddleware -> 3. Standard Identity jwt auth middleware -> 4. minimal api PATCH endpoint -> 5. EF core local mssql db -> 6. HttpLoggerMiddleware -> 7. response From 2 -> 7 it's only 3ms. Sometimes 1 -> 2 is 2-5s+. I'm just trying to figure out what between 1 and 2 could cause such a delay seemingly randomly. With no change in the data being sent, just 1 string field 12 char long in the request body.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server