本帖最后由 oyljerry 于 2014-01-15 14:55:50 编辑

解决方案 »

  1.   

    recv有时候成功,有时候失败(WSAECONNABORTED),求原因
      

  2.   

    WSAECONNABORTED
    The virtual circuit was terminated due to a time-out or other failure. The application should close the socket as it is no longer usable.
    由于超时或其它失败放弃连接.
      

  3.   

    本帖最后由 oyljerry 于 2014-01-15 14:56:25 编辑
      

  4.   

    http://www.chilkatsoft.com/p/p_299.asp
      

  5.   

    多谢了,这篇文章很有用处。大概明白了什么原因,可是有没什么比较好的方法解决呢?对于非阻塞套接字我们也无法确定它是否能一次性将HTTP请求发送给Tracker服务器。
      

  6.   

    GET /announce?info_hash=%2292%1B%CD%E6%A4%19&peer_id=asdfghjkla1234567890&port=6885&event=started&uploaded=0&left=10240&numwant=10&compact=1 HTTP/1.1
    Host: tracker.ktxp.com
    User-Agent: BitTorrent/3.4.2
    Accept:*/*
    Connection:close