I don't think this sleep is really  needed. Remember which send_request_cgi has a timeout, which by default is 20 seconds. If the server is getting more than 20 seconds to answer I really don't thing making this timing longer can have any benefit. On the other hand I guess you still can increase the send_request_cgi timeout, so you don't need this sleep here.