好像是数据流涌塞了吧?你用的是同步机制么?这种机制会出现丢包的问题。应该在send以后sleep一下

解决方案 »

  1.   

    倒,怎么没有注意呢,又把域名写错了 ,呵呵, 是 whiteland.d2g.com
      

  2.   

    我是在send前停滞了一下才接收到的.send之后sleep怕是没有用阿
      

  3.   

    好像没有wait咯,试一下sleep吧,有没有同步机制呢?
      

  4.   

    ??是说在客户端,还是在服务器端sleep?
      

  5.   

    我用asp.net作过,没有问题的,给你代码看看
    A页 提交,监听
    var g_xmlhttp = new ActiveXObject( "Microsoft.XMLHTTP" );
    var xml = new ActiveXObject( "Msxml.DOMDocument" );
    var root = xml.createElement("account");
    xml.appendChild( root );
    var node;
    node = xml.createElement(DeviceAccidentRate.rows(0).cells.item(i).value);
    node.text = cells.item(i).value;
    root.appendChild( node );
    //post data to server
    g_xmlhttp.open( "POST", "updateEvaluation.aspx?type=1", false );
    g_xmlhttp.send( xml );

    if( g_xmlhttp.status != "200" )
    {
    alert( g_xmlhttp.statusText );
    return false;
    }
    return true;
    B页 响应
    Dim xmlstream As Stream = Request.InputStream
    Dim xml As XmlDocument = New XmlDocument()
    Try
                xml.Load(xmlstream)
                Dim uid As String
                Dim timeid As String
                uid = xml.SelectSingleNode("//account/" & Trim(value.InnerText)).InnerText
                timeid = xml.SelectSingleNode("//account/计算发生时间").InnerText
                Response.StatusCode = 200
                Response.StatusDescription = "OK"
    Catch ex As Exception
                Response.StatusCode = 500
                Response.StatusDescription = "更新帐户时发生异常:" + ex.Message
    End Try
      

  6.   

    如果是客户端和服务器端都要接收,那么两遍都要sleep如果服务器只管接收,而不会发送信息给客户端,或者仅仅返回一个确认帧,那么就在客户端sleep,sleep到收到确认帧