发明名称 Method and device for sending requests
摘要 A method for sending requests includes: determining, by a device comprising a processor, the requests and Transmission Control Protocol (TCP) connections between a client and a proxy server; and sending, by the device, the requests to the proxy server via idle TCP connections between the client and the proxy server to forward the requests to a Web server by the proxy server, or establishing, by the device, TCP connections between the client and the proxy server depending on whether the requests are serial or parallel requests, the number of the idle TCP connections between the client and the proxy server, and the number of TCP connections which are needed during sending the requests; and sending, by the device, the requests to the proxy server via the idle TCP connections and the established TCP connections to forward the requests to the Web server by the proxy server.
申请公布号 US9392081(B2) 申请公布日期 2016.07.12
申请号 US201414786308 申请日期 2014.09.18
申请人 Tencent Technology (Shenzhen) Company Limited 发明人 Lin Yanmiao;Liu Shan;Xu Yu;Chen Dexian;Kong Li
分类号 G06F15/16;H04L29/06;H04L29/08 主分类号 G06F15/16
代理机构 Brinks Gilson & Lione 代理人 Brinks Gilson & Lione
主权项 1. A method for sending requests, comprising: determining, by a device comprising a processor, the requests and Transmission Control Protocol (TCP) connections between a client and a proxy server; and sending, by the device, the requests to the proxy server via idle TCP connections between the client and the proxy server so as to forward the requests to a Web server by the proxy server, if the requests are serial requests and the idle TCP connections exist between the client and the proxy server, and if the requests are serial requests and the number of idle TCP connections between the client and the proxy server is larger than or equal to the number of TCP connections which are needed during sending the requests; and establishing, by the device, TCP connections between the client and the proxy server according to the number of idle TCP connections between the client and the proxy server, and the number of TCP connections which are needed during sending the requests, if the requests are parallel requests and the number of idle TCP connections between the client and the proxy server is smaller than the number of TCP connections which are needed during sending the requests; and sending, by the device, the requests to the proxy server via the idle TCP connections between the client and the proxy server and the established TCP connections so as to forward the requests to the Web server by the proxy server, wherein before sending the requests to the proxy server via the idle TCP connections between the client and the proxy server, the method further comprises: obtaining the identification of the idle TCP connection in a corresponding relationship between the identification of the TCP connections and a TCP connection status locally stored in the client; andobtaining the TCP connection corresponding to the obtained identification of the TCP connection, wherein the obtained TCP connection is an idle TCP connection between the client and the proxy server.
地址 Shenzhen CN