xplicit / HyperFastCgi

Performant nginx to mono fastcgi server
MIT License
129 stars 49 forks source link

System.NullReferenceException at HyperFastCgi.Transports.BaseManagedListenerTransport.AddHeader #50

Open derFunk opened 8 years ago

derFunk commented 8 years ago

Just wanted to let you know about this exception, which happened to us during a stress test. Havn't yet investigated further, will do as soon as I got time:

root@4c1daf7b56af:/# tail -f -n 500 /var/log/supervisor/mono-server-hyperfastcgi4-stdout---supervisor-cAIE5v.log

[2016-03-11 15:12:24Z] Debug   HyperFastCgi
[2016-03-11 15:12:24Z] Debug   Configured host in domain d95d475a, id=1
log4net:ERROR You have tried to set a null level to root.
log4net.Core.LogException: Error in the application.

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at HyperFastCgi.Transports.BaseManagedListenerTransport.AddHeader (System.String name, System.String value, Boolean isHeader, System.Object userData) <0x4018a230 + 0x0005b> in <filename unknown>:0
  at HyperFastCgi.Helpers.FastCgiProtocol.FcgiUtils.ParseParameters (System.Byte[] data, HyperFastCgi.Helpers.FastCgiProtocol.AddHeaderDelegate func, System.Object userData) <0x40189880 + 0x0023b> in <filename unknown>:0
  at HyperFastCgi.Transports.BaseManagedListenerTransport.Process (UInt64 listenerTag, Int32 requestNumber, System.Byte[] header, System.Byte[] recordBody) <0x40184ac0 + 0x006bb> in <filename unknown>:0
  at HyperFastCgi.Listeners.FastCgiNetworkConnector.ProcessRecord (System.Byte[] header, System.Byte[] body) <0x401848e0 + 0x00196> in <filename unknown>:0
  at HyperFastCgi.Listeners.FastCgiNetworkConnector.ReceiveCallback (IAsyncResult ar) <0x40183ec0 + 0x00508> in <filename unknown>:0
[2016-03-11 15:25:22Z] Debug   HyperFastCgi
[2016-03-11 15:25:22Z] Debug   Configured host in domain d95d475a, id=1
log4net:ERROR You have tried to set a null level to root.
log4net.Core.LogException: Error in the application.