0

I am trying to send simultaneous request for opening URL in OpenURL() in CInternetSession class. But After sending 2 URLS requests, no other request can be send without receiving the response from previously send requests. How can I send a large number of URL request to a server and later only i want to process the response. Please help if any other API is there for sending multiple URL request to a server and receiving the response later. I want to use in MFC windows

4

1 に答える 1

3

HTTP 1.1 仕様 (RFC 2068) では、2 つの接続制限が義務付けられています。

このように、WinInet (そのCInternetSession上に構築) はサーバー ( MSDN ) ごとの接続を制限します。

値を 呼び出しSetOptionて調整することができます。( MSDN )INTERNET_OPTION_MAX_CONNS_PER_SERVERINTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER

このようなもの:

sess.SetOption(INTERNET_OPTION_MAX_CONNS_PER_SERVER, 8); 
sess.SetOption(INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER, 8);
于 2013-02-28T06:02:17.010 に答える