IE9 loses requests to a local Catalyst server

与世无争的帅哥 提交于 2019-12-05 23:05:18

问题


Okay, this is a hard one. I have a Catalyst server I can access just fine from Firefox 4, Chromium 12, and IE 8 and 9 on other computers. When I try to access it from IE9 on my own machine (the same machine the server is on), I get strange timeouts and delays. The Catalyst server's output doesn't show these delays and the IE9 traffic view doesn't even show that the request was ever sent!

While the server is hanging up it's using 100% of a processor core but then it drops back to idle without outputting anything. This same request takes 5ms when requested from Chrome or FF.

If I ^C the server while it's locked up I get this frighteningly low-level error:

Can't coerce UNKNOWN to string in sysread 
   at C:/strawberry/perl/site/lib/Catalyst/Engine/HTTP.pm line 440.
Can't call method "_socket_data" without a package or object reference 
   at C:/strawberry/perl/site/lib/Catalyst/Engine/HTTP.pm line 358.
panic: pad_free curpad 
   at C:/strawberry/perl/site/lib/Catalyst/Engine/HTTP.pm line 358.

What's different about how IE9 routes requests to local sockets?

Environment info:

  • Windows 7 Pro x64
  • Strawberry Perl 5.10.1 x86
  • Catalyst 5.80032
  • Internet Explorer 9.0.8112.16421

回答1:


Does the problem go away if you run Fiddler?

If so, the problem you're likely hitting is that your webserver isn't properly multithreaded and IE9's background connection feature is causing your server to hang as it deadlocks due to a background connection which doesn't have a request on it.



来源:https://stackoverflow.com/questions/5971081/ie9-loses-requests-to-a-local-catalyst-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!