summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/client/src/client-protocol.c')
-rw-r--r--xlators/protocol/client/src/client-protocol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c
index 95a5db89590..58eba01ed0b 100644
--- a/xlators/protocol/client/src/client-protocol.c
+++ b/xlators/protocol/client/src/client-protocol.c
@@ -326,8 +326,6 @@ call_bail (void *data)
}
}
- /* TODO while(1) is not nice - use splice */
-
do {
saved_frame =
saved_frames_get_timedout (conn->saved_frames,
@@ -500,8 +498,10 @@ client_ping_timer_expired (void *data)
conn->ping_timer);
gettimeofday (&current, NULL);
- if ((current.tv_sec - conn->last_received.tv_sec) <
- conn->ping_timeout) {
+ if (((current.tv_sec - conn->last_received.tv_sec) <
+ conn->ping_timeout)
+ || ((current.tv_sec - conn->last_sent.tv_sec) <
+ conn->ping_timeout)) {
transport_activity = 1;
}