* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: query.c,v 1.222 2002/07/09 02:41:36 marka Exp $ */
+/* $Id: query.c,v 1.223 2002/07/11 05:45:33 marka Exp $ */
#include <config.h>
* because those have already been replaced when the
* connection was accepted (if allowed by the TCP quota).
*/
- if (! client->mortal && client->recursionquota == NULL) {
+ if (client->recursionquota == NULL) {
isc_boolean_t killoldest = ISC_FALSE;
result = isc_quota_attach(&ns_g_server->recursionquota,
&client->recursionquota);
if (dns_resolver_nrunning(client->view->resolver) >
(unsigned int)ns_g_server->recursionquota.max)
result = ISC_R_QUOTA;
- if (result == ISC_R_SUCCESS &&
+ if (result == ISC_R_SUCCESS && !client->mortal &&
(client->attributes & NS_CLIENTATTR_TCP) == 0)
result = ns_client_replace(client);
if (result != ISC_R_SUCCESS) {