-
Notifications
You must be signed in to change notification settings - Fork 527
System.NullReferenceException: Object reference not set to an instance of an object at .Kestrel.Infrastructure.Headers.Initialize #866
Comments
We hit this today doing some perf testing with MusicStore. Seems to happen for the first few requests and then never again |
Resolves aspnet#866
Resolves aspnet#866
Start up race that seemed to work prior to #810 by using an null array for the date header value which With the date bytes and date string now in a object; that object is null - which causes the null reference when resolving the bytes at start-up. |
@benaadams This is a new race that didn't exists before #810. First of all, Prior to #810, during timer startup, Since #810 this logic is now flipped. Now instead of using I think the fix is pretty simple: just go back to to always calling |
/cc @sebastienros FYI |
I approve this fix, good job guys. Let's fix all the race issues one at a time. |
I am running the following exception when running MusicStore app
warn: Microsoft.AspNetCore.Server.Kestrel[0] Connection processing ended abnormally warn: Microsoft.AspNetCore.Server.Kestrel[0] Connection processing ended abnormally warn: Microsoft.AspNetCore.Server.Kestrel[0] Connection processing ended abnormally System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.AspNetCore.Server.Kestrel.Infrastructure.Headers.Initialize(DateHeaderValueManager dateValueManager) at Microsoft.AspNetCore.Server.Kestrel.Http.Frame
1.d__2.MoveNext()System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.AspNetCore.Server.Kestrel.Infrastructure.Headers.Initialize(DateHeaderValueManager dateValueManager)
at Microsoft.AspNetCore.Server.Kestrel.Http.Frame
1.<RequestProcessingAsync>d__2.MoveNext() System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.AspNetCore.Server.Kestrel.Infrastructure.Headers.Initialize(DateHeaderValueManager dateValueManager) at Microsoft.AspNetCore.Server.Kestrel.Http.Frame
1.d__2.MoveNext()`The text was updated successfully, but these errors were encountered: