|
@@ -585,11 +585,11 @@ ip_vs_bind_dest(struct ip_vs_conn *cp, struct ip_vs_dest *dest)
|
|
|
|
|
|
/* Update the connection counters */
|
|
/* Update the connection counters */
|
|
if (!(cp->flags & IP_VS_CONN_F_TEMPLATE)) {
|
|
if (!(cp->flags & IP_VS_CONN_F_TEMPLATE)) {
|
|
- /* It is a normal connection, so increase the inactive
|
|
|
|
- connection counter because it is in TCP SYNRECV
|
|
|
|
- state (inactive) or other protocol inacive state */
|
|
|
|
- if ((cp->flags & IP_VS_CONN_F_SYNC) &&
|
|
|
|
- (!(cp->flags & IP_VS_CONN_F_INACTIVE)))
|
|
|
|
|
|
+ /* It is a normal connection, so modify the counters
|
|
|
|
+ * according to the flags, later the protocol can
|
|
|
|
+ * update them on state change
|
|
|
|
+ */
|
|
|
|
+ if (!(cp->flags & IP_VS_CONN_F_INACTIVE))
|
|
atomic_inc(&dest->activeconns);
|
|
atomic_inc(&dest->activeconns);
|
|
else
|
|
else
|
|
atomic_inc(&dest->inactconns);
|
|
atomic_inc(&dest->inactconns);
|