多个网络上的多个浏览器中的ERR_CONNECTION_RESET [英] ERR_CONNECTION_RESET in multiple Browsers on multiple Networks

查看:624
本文介绍了多个网络上的多个浏览器中的ERR_CONNECTION_RESET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名网络开发人员,目前正在为我的公司开发一个互联网项目。
我已经为此工作了近2年。



我使用MacOSX 10.9.1开发MacBook Pro,并主要调试和测试项目使用Chrome 31.0.1650.63
Intranet使用PHP后端开发,因此问题可能与PHP相关。



以下是我的问题:



当我访问内联网的开发版本时,我随机得到一个101 ERR_CONNECTION_RESET错误。
它发生在不同的浏览器和不同的节点上。



我到目前为止所尝试的:


  • 在多种浏览器中进行测试:Firefox 26.0和Safari 7.0.1
  • 测试多个连接LAN,WLAN和3G(所有独立提供商)
  • 清除缓存和这3个浏览器的cookie并再次尝试 以隐身模式测试站点,所有扩展都不在图片中

  • 使用标志--enable-logging --v = 1启动chrome,查看chrome日志是否给我一些见解

  • 通过错误日志任何可疑的webserver



我认为这是错误发生时chrome日志中的行:



[25524:1799:0113/140554:VERBOSE1:web_contents_impl.cc(2267)]失败临时加载:#IntranetURL#,error_code:-101,error_description:连接重置,is_main_frame:1,showing_repost_interstitial: 0,frame_id:1



在网络服务器的error_log中有一条奇怪的线:

[Fri Jan 10 23:57:07 2014] [错误] [client xxx.xxx.xxx.xxx]文件不存在:#PathToOurWebspace#/ system-error

一位同事建议,这可能是一个错误处理程序在vhost配置中指定。我们创建了这个文件,但没有任何区别。这条线遍布错误日志。



其余的只是fcgi的PHP ParseErrors或FatalErrors,但这些不应该是问题吧?我应该至少在浏览器中看到php错误输出,就像所有其他的php错误一样,对吗?



感谢您阅读本文并提供任何帮助!



Steve

解决方案

对于阅读本文的人来说,我的解决方案如下: / p>

我使用Robert Fischer的PeriodicalUpdate Port( https:/ /github.com/RobertFischer/JQuery-PeriodicalUpdater )在m项目中。



这个jquery插件以最后一次调用的毫秒为单位设置cookie。
如果在插件配置中没有指定cookie名称,它会使用默认的调用起始地址。



据我的理解,每次我导航到另一个页面时,由于新的URL,所以创建了一个新的cookie。



我不确切知道这是怎么解决的,但是如果我删除了由定期更新程序创建的cookie并在插件配置中全部禁用cookie,问题就没有了。



可能是PeriodicalUpdater端口或jQuery Cookie中的一个错误插件Klaus Hartl( https://github.com/carhartl/jquery-cookie ),这是用于写入cookies。



这是我当前的PeriodicalUpdater调用(我通过php创建了这些):

 $。PeriodicalUpdater($ handler,{
method:'get',
data:newParams,
minTimeout:$ minTimeout,
maxTimeout: $ maxTimeout,
乘数:$乘数
类型
maxCalls $ maxCalls $ b $ autoStop $ autoStop $ b $ autoStopCallback:function $ b cookie:false,
详细信息:$ verbose
}
);


I'm a web developer and currently working on an internet project for my company. I've been working on this for nearly 2 years now.

I work on a MacBook Pro with MacOSX 10.9.1 and debug and test the project mainly with Chrome 31.0.1650.63 The intranet is developed with a PHP backend, so the problem might be PHP related

Here's my problem:

When I visit the dev version of the intranet I randomly get an 101 ERR_CONNECTION_RESET Error. It happens on different browser and different conenctions.

What I tried so far:

  • Testing in multiple browsers: Firefox 26.0 and Safari 7.0.1
  • Testing on multiple connections LAN, WLAN and 3G (all seperate providers)
  • Clearing the cache and the cookies of these 3 browsers and trying again
  • Testing the site in incognito mode, so all the extensions are out of the picture
  • Starting chrome with the flags "--enable-logging --v=1" to see if the chrome logs give me some insights
  • Reading through the error log of the webserver for anything suspicious

I think this is the line in the chrome log when the error occurs:

[25524:1799:0113/140554:VERBOSE1:web_contents_impl.cc(2267)] Failed Provisional Load: #IntranetURL#, error_code: -101, error_description: Connection reset., is_main_frame: 1, showing_repost_interstitial: 0, frame_id: 1

There is one strange line in the error_log of the webserver:

[Fri Jan 10 23:57:07 2014] [error] [client xxx.xxx.xxx.xxx] File does not exist: #PathToOurWebspace#/system-error

A colleague suggested, that this might be a error handler specified in the vhost config. We created the file but it makes no difference. This line is found all over the place in the error log.

The rest are just PHP ParseErrors or FatalErrors from fcgi, but those shouldn't be the problem right? I should at least see the php error output in the browser like all the other php errors, right?

Thanks for reading this and for any help!

Steve

解决方案

For anyone reading this the solution in my case was the following:

I use the PeriodicalUpdate Port by RobertFischer (https://github.com/RobertFischer/JQuery-PeriodicalUpdater) in m project.

This jquery plugin sets cookies with the milliseconds of the last call. If no cookie name is specified in the plugin config it uses the URL of the origin of the call as default.

And as far as my understanding goes - everytime I navigated to another page this created a new cookie because of the new URL.

I don't know exactly how this can be the fix, but if i delete the cookies created by the periodical updater and disable cookies at all in the plugin config, the problem is gone.

Might be a bug in the PeriodicalUpdater port, or in the jQuery Cookie plugin by Klaus Hartl (https://github.com/carhartl/jquery-cookie) which is used to write the cookies.

This is my current PeriodicalUpdater call (i create these via php):

$.PeriodicalUpdater($handler, {
        method: 'get', 
        data: newParams,
        minTimeout: $minTimeout,
        maxTimeout: $maxTimeout,
        multiplier: $multiplier,
        type: $type,
        maxCalls: $maxCalls,
        autoStop: $autoStop,
        autoStopCallback: function(){$autoStopCallback},
        cookie: false,
        verbose: $verbose
    }
);

这篇关于多个网络上的多个浏览器中的ERR_CONNECTION_RESET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆