Mantis - Resin
Viewing Issue Advanced Details
5621 minor always 12-27-13 07:04 11-10-14 11:19
cowan  
alex  
high  
closed 4.0.37  
unable to reproduce  
none    
none 4.0.42  
0005621: Hmux[{0}] unexpected end of file in IIS
503(Service Unavailable) occurs when connecting Resin via IIS + Resin.IIS.Handler.
503 response is not always happens. It happens when reloading repeatedly by F5 and so on.
The load is not applied a lot. It happens when finishing or just before page loading.
I tried same way without via IIS, then 503 didn't occur.
So I think this issue is a bug of Resin.IIS.Handler.


I putted a logger in Resin.IIS.Handler.dll.
There are a lot of following logs at the end of HandleRequest function in ResinHandler.cs .

Trace.TraceInformation("Hmux[{0}] unexpected end of file", traceId, code);


Code variables in this log are all "-1".
As long as I look at this log, I think following issue happens.

"Hmux[{0}] unexpected end of file" happens.
HandleRequest return error code, then DoHmux that is calling HandleRequest, invoke client.FailSocket().
Then reaching following branch at OpenConnection function in Server.cs and then return 503.


if (_failTime > 0 && (_failTime + _loadBalanceRecoverTime) > now) {


(Resin Pro 4.0.37 (I don't change a setting.) IIS7, 8)
Rep by S Nobuaki

Notes
(0006564)
alex   
11-10-14 11:18   
Can't reproduce.
(0006565)
alex   
11-10-14 11:19   
Can't reproduce.