在我的家里/办公室,它工作得很好。

但是昨天我去了一个客户的地方,那里有专门的互联网。但在那里的网络中,我所有的数据包都丢失了,延迟了,整个事情都不工作了,因为它在我的家庭/办公室网络中工作到云端。
我经常收到Google Chrome >网络>计时>连接设置=停顿的14.89s和URL的红线

我怎么才能修好呢?我花了几个小时和他们联系,但是他们认为是我的代码引起的?我现在很困惑。
var maincrawl_timer = null;
function crawl() {
maincrawl_timer = setTimeout(function() {
var s1 = $.get(submit_url + '/inbox', {
action: 'spinbox',
ousername: main_username,
status: 'offline'
}, function(msg) {
for (drawSixRowOnly in msg.db) {}
}, 'json');
s1.always(function() {
console.log('>>> crawl started. Are you sure its not causing Stalled??????????????????');
crawl();
});
}, 3000);
}
// Boot once
crawl();
// Button used - to receive request
function ackowledge(input1, input2) {
var chk = input2 + '_' + input1;
if (search_row(chk) == chk) {
error_show('Accepted by someone else.');
return false;
}
$('#form1_show').show();
$('#form1_title').html(input2);
$.post(submit_url + '/spack', {
action: 'spack',
ousername: main_username,
id: input1,
kiosk: input2
}, function(msg) {
if (msg.result == 'ok') {
spformid = msg.spformid; // selected: ACknowledge id
$('#form1_body').html(msg.form);
} else {
$('#form1_body').html('Failed');
}
}, 'json');
}发布于 2015-11-06 02:43:46
我在您的代码中看不到任何会导致HTTP流量停滞的东西。当您尝试访问服务器时,您的Chrome开发工具中的HTTP请求/响应头是什么样子的?你会收到403个错误吗?尝试从您的客户端通过SSHing连接到服务器,或者让网络工程师使用您的客户端URL在服务器上进行卷曲。如果所有这些都显示服务器将接受来自客户端的数据包,则可能是您将数据包发送到了错误的端口,或者您没有经过正确的身份验证。如果您没有正确地进行身份验证,请了解服务器的安全要求。您可能需要实现Oauth/cookies/Access-Control-Allow-Origin headers才能正确进行身份验证。
https://stackoverflow.com/questions/30111457
复制相似问题