t->flags |= conn_err;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_C;
- /* TODO : check if there are pending connections on this server */
return 1;
}
else { /* no error or write 0 */
Alert("Blocking cacheable cookie in response from instance %s, server %s.\n", t->proxy->id, t->srv->id);
send_log(t->proxy, LOG_ALERT, "Blocking cacheable cookie in response from instance %s, server %s.\n", t->proxy->id, t->srv->id);
- /* TODO : check if there are pending connections on this server */
return 1;
}
}
t->flags |= SN_ERR_PRXCOND;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_H;
- /* TODO : check if there are pending connections on this server */
return 1;
}
t->flags |= SN_ERR_SRVCL;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_H;
- /* TODO : check if there are pending connections on this server */
return 1;
}
/* end of client write or end of server read.
t->flags |= SN_ERR_SRVTO;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_H;
- /* TODO : check if there are pending connections on this server */
return 1;
+
}
/* last client read and buffer empty */
/* FIXME!!! here, we don't want to switch to SHUTW if the
t->flags |= SN_ERR_SRVCL;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_D;
- /* TODO : check if there are pending connections on this server */
return 1;
}
/* last read, or end of client write */
t->flags |= SN_ERR_SRVCL;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_D;
- /* TODO : check if there are pending connections on this server */
return 1;
}
else if ((c == CL_STSHUTR || c == CL_STCLOSE) && (req->l == 0)) {
t->srv->cur_sess--;
//close(t->srv_fd);
t->srv_state = SV_STCLOSE;
- /* TODO : check if there are pending connections on this server */
return 1;
}
else if (tv_cmp2_ms(&t->swexpire, &now) <= 0) {
t->flags |= SN_ERR_SRVTO;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_D;
- /* TODO : check if there are pending connections on this server */
return 1;
}
else if (req->l == 0) {
t->flags |= SN_ERR_SRVCL;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_D;
- /* TODO : check if there are pending connections on this server */
return 1;
}
else if (t->res_sr == RES_NULL || c == CL_STSHUTW || c == CL_STCLOSE) {
t->srv->cur_sess--;
//close(t->srv_fd);
t->srv_state = SV_STCLOSE;
- /* TODO : check if there are pending connections on this server */
return 1;
}
else if (tv_cmp2_ms(&t->srexpire, &now) <= 0) {
t->flags |= SN_ERR_SRVTO;
if (!(t->flags & SN_FINST_MASK))
t->flags |= SN_FINST_D;
- /* TODO : check if there are pending connections on this server */
return 1;
}
else if (rep->l == BUFSIZE) { /* no room to read more data */