odissey: do discard for newly connected servers

This commit is contained in:
Dmitry Simonenko 2017-09-05 16:36:57 +03:00
parent ab95c11fff
commit d89fe4e580
1 changed files with 7 additions and 7 deletions

View File

@ -352,13 +352,13 @@ od_frontend_remote(od_client_t *client)
rc = od_backend_connect(server);
if (rc == -1)
return OD_RS_ESERVER_CONNECT;
} else {
/* discard last server configuration */
if (route->scheme->pool_discard) {
rc = od_reset_discard(client->server);
if (rc == -1)
return OD_RS_ESERVER_CONFIGURE;
}
}
/* discard last server configuration */
if (route->scheme->pool_discard) {
rc = od_reset_discard(client->server);
if (rc == -1)
return OD_RS_ESERVER_CONFIGURE;
}
/* set client parameters */