• 4062阅读
  • 1回复

QHttp 的问题 [复制链接]

上一主题 下一主题
离线yooi
 
只看楼主 倒序阅读 楼主  发表于: 2009-09-04
— 本帖被 XChinux 从 General Qt Programming 移动到本区(2011-01-02) —

我用循环用QHttp向一个服务器发送request请求
第一次发送成功获取返回数据,但是第二次就会走到 在 QHttp:sending 然后就停了,等待也没有reading的状态过来
请问有谁遇到过同样的问题,为什么连续发送就不行呢?

      QHttpRequestHeader header("POST", url.path());
            header.setContentType("application/x-www-form-urlencoded");
            header.setValue("Host", url.host());
            this->setHost(url.host());
            
            /// start the request and store the requestID
            requestID = request(header,data);
离线yooi
只看该作者 1楼 发表于: 2009-09-10
每次发送request并不只发送一个请求实际上在pending的request中还有一个未知的请求
我abort掉那个请求之后,流程中不会出现阻塞情况
快速回复
限100 字节
 
上一个 下一个