Connection closed before all GET/POST done
Status: Alpha
Brought to you by:
coroberti
From: Todd C. <tc...@in...> - 2009-05-05 18:24:04
|
Hi, The scenario is to send a GET request for a page and then send 2 POST requests per client IP. There are 9 concurrent clients running. What I find is that not all the POST requests get send before the curl-loader exits. While running the test, I capture the packets. From the trace, I find that for some of the client(s), the TCP connection is closed before the client is able to complete all the transactions. Please note that it is always the client initiates the TCP connection close (send FIN packet). I have the following questions: 1. Why client closes the TCP connection before it completes all transactions? Is there a way to tell the client not to close the TCP connection until all transactions of the client is complete? 2. Is there a way to tell the client not to close the TCP connection at all with a "timeout value"? This is because in my case the server will initiate the close by sending the FIN packet. The purpose of the "timeout value" is that the client can initiate the close connection only after the timeout value passed. Below is my curl-loader configuration: ############## GENERAL SECTION ###################### BATCH_NAME=AuthDHCP CLIENTS_NUM_MAX=9 CLIENTS_NUM_START=9 CLIENTS_RAMPUP_INC=9 INTERFACE=eth1 NETMASK=24 IP_ADDR_MIN=10.34.30.111 IP_ADDR_MAX=10.34.30.119 USER_AGENT="Post Test" URLS_NUM=3 CYCLES_NUM=1 ################ URL SECION ########################### URL="http://10.35.1.171:443/cgi-bin/dispatcher.cgi" URL_SHORT_NAME="GET.form" REQUEST_TYPE=GET TIMER_URL_COMPLETION=120000 TIMER_AFTER_URL_SLEEP=0 RESPONSE_STATUS_ERRORS="-404" ####################################################### # The 'press continue' ####################################################### URL="" URL_USE_CURRENT=1 URL_SHORT_NAME="POST.continue" REQUEST_TYPE=POST FORM_USAGE_TYPE="AS_IS" FORM_STRING=__action__=pre_auth_user TIMER_URL_COMPLETION=120000 TIMER_AFTER_URL_SLEEP=0 ####################################################### # The 'login' ####################################################### URL="" URL_USE_CURRENT=1 URL_SHORT_NAME="POST.login" USERNAME=test PASSWORD=test REQUEST_TYPE=POST FORM_USAGE_TYPE=SINGLE_USER FORM_STRING=username=%s&password=%s&__action__=auth_user TIMER_URL_COMPLETION=120000 TIMER_AFTER_URL_SLEEP=0 Thank you for your help! Todd |