Hello everyone,

I just want to figure out how Qtwebkit handle for concurrent http connections, 
and I have found some relevant code from file "ResourceRequestQt.cpp. The code 
is as follows, but I can't understand it well.

// Currently Qt allows three connections per host on symbian and six
// for everyone else. The limit can be found in qhttpnetworkconnection.cpp.
// To achieve the best result we want WebKit to schedule the jobs so we
// are using the limit as found in Qt. To allow Qt to fill its queue
// and prepare jobs we will schedule two more downloads.
// Per TCP connection there is 1 current processed, 3 possibly pipelined
// and 2 ready to re-fill the pipeline.
unsigned initializeMaximumHTTPConnectionCountPerHost()
{
#ifdef Q_OS_SYMBIAN
    return 3 * (1 + 3 + 2);
#else
    return 6 * (1 + 3 + 2);
#endif
}

My question is as follows:
1. Does the maximum number of concurrent http connection for each host equal to 
36?

2. Is there any restriction for overall number of http connection that can be 
hold by Qtwebkit at any time?

3. Http 1.1 has a concept called "persistent connection", does QtWebkit support 
this feature? If so, what's the relationship between the number of http 
request& reponse that have been made and the number of tcp sockets established?

Does anybody can help me solve this problem? 
Thank you very much.
---------------------------------------------------
Chen Minhua
Development Dept.III
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) 
No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: 86630566-615
COINS: 79955-615
FAX: 83317685
MAIL: [email protected]
--------------------------------------------------- 



_______________________________________________
webkit-qt mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt

Reply via email to