页面加载两次
我正在使用 mIRC 打开网站的套接字。来自数据库的日志显示该页面至少打开了 2 次,有时是 3 次。第二次通常距离第一次打开 2 分钟。然而,套接字只打开一次;我在sockopen 上有回声。我手动浏览 Firefox 并单击链接,mIRC 脚本中也发生了同样的事情。
此网站上的其他人不会发生这种情况;有人对为什么页面加载两次有任何理论吗?
I'm using mIRC to open a socket to a website. The logs from the DB show that the page is opening at LEAST 2 times, sometimes 3. The 2nd time is usually 2 minutes from the first time. However, the socket is only opening once; I have an echo on sockopen. I manually went through firefox and clicked on the link, the same thing happened that happened within the mIRC script.
This doesn't happen to anyone else on this site; does anyone have any theories as to why the page is loading twice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于纯套接字从不解释任何 HTTP 代码,因此它必须驻留在您的代码中......
由于您没有提供任何代码粘贴,因此几乎没有办法帮助您。
我唯一能想到的是某种计时器或事件,它会导致套接字关闭和/或再次重新打开。
这可以解释页面加载两次的原因。
但是,如果您自己使用 /sockopen 或通过别名触发 sockopen,则您的脚本或其他脚本中一定有某种原因干扰了它。
您应该将代码粘贴到 http://pastebin.com/ 并将链接粘贴到她
Since pure sockets never interpret any HTTP-codes, it must reside within your code...
And since you didn't supply any code paste, there is nearly no way to help you.
The only thing I can think of would be some sort of timer or event which causes the sockets to close and/or reopened again.
This would explain the page loading twice.
But if you trigger the sockopen yourself with /sockopen or via an alias there must be some cause in your script or other scripts which interference with it.
You should paste your code on http://pastebin.com/ and paste the link her
最终是互联网连接问题。
It was an internet connection issue in the end.