在 phpbb 中按提交后网站无法连接
当我在 phpbb 中写一篇文章然后按提交时,大约有五分之一的情况会出现服务器错误,并显示以下内容 -
The connection was reset. The connection to the server was reset while the page was loading.
有谁知道这可能是什么原因?我不确定这是否是一个不充分的 php.ini 设置,或者它是否是干扰 phpBB 提交的众多 JavaScript 之一,或者?
Around 1 out of 5 times when I write a post in phpbb then press submit it will give a server error with the following -
The connection was reset. The connection to the server was reset while the page was loading.
Does anyone know what might be the likely cause of this? I'm not sure if it's an inadequate php.ini setting or if it's one of the many javascripts interfering with the phpBB submit, or ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从技术上讲,这意味着服务器发送了一个 TCP“重置”数据包,这基本上意味着“由于某种原因该连接无法完成,所以我要终止它”。
根据我的经验,该错误通常意味着服务器内部出现了严重错误。也许某个守护进程崩溃了......你必须检查服务器日志。
也许它只是超载,有时论坛可能需要昂贵的硬件,而且他们很少有预算。
或者它可能是 PHP 或 Apache 中的错误。
这可能不是 PhpBB 代码本身的错误,但这总是有可能的。找出答案的唯一方法是单步执行每一行代码,看看哪里出错了。
Technically, it means the server sent a TCP "reset" packet, which basically means "this connection can't be completed for some reason, so I'm killing it".
In my experience, that error usually means something went seriously wrong in the guts of the server. Maybe some daemon crashed... you'd have to check the server logs.
Perhaps it's simply overloaded, sometimes forums can require expensive hardware and they rarely have the budget for it.
Or it could be a bug in PHP or Apache.
It probably isn't a bug in the PhpBB code itself, but that's always possible. Only way to find out is to step through every line of code and see where it blows up.
如果您有一个干扰提交过程的脚本,它将是一致的而不是间歇性的。该问题看起来更像是您和托管服务器之间的问题或托管服务的问题。您所描述的连接错误听起来是 Firefox 浏览器特有的。如果您要在 IE 上运行相同系列的测试,您可能会看到“无法显示此网页”错误。
您应该向您的主机提供商提出支持问题,尽管这可能是一项令人沮丧的工作。如果您发布的 5 次中有 4 次成功,但 1 次失败,则您可能遇到了服务器上的连接可靠性问题,而不是软件配置问题。不幸的是,大型共享托管提供商没有最好的支持。而第一层的支持从来都不是令人愉快的。但是,我非常确定服务器正在断开您的连接,并且质量支持工程师可以通过网络服务器日志确认这一点。
寻求其他人的帮助来进行类似的测试以确认这不是您和服务器之间的间歇性路由问题也可能是一个好主意。
If you had a script that interfered with the submit process, it would be consistent and not intermittent. The problem seems more like an issue between you and the hosting server or a problem with the hosting service. The connection error you are describing sounds specific to the Firefox browser. If you were to run the same series of tests on IE, you'd probably see a "Unable to display this web page" error.
You should raise a support issue with your host provider, though that can be a frustrating endeavor. If 4 out of the 5 times you post are successful, but 1 time fails, it seems likely that you're suffering from a connection reliability issue on the server as opposed to a software configuration issue. Unfortunately, large shared hosting providers do not have the best support. and first tier support is never pleasant. However, I'm pretty sure that server is dropping your connection and a quality support engineer can confirm that via the web server logs.
It may also be a good idea to solicit the help of someone else to conduct similar testing to confirm that it's not an intermittent routing issue between you and the server.