Commit 49013e91 authored by Trond Myklebust's avatar Trond Myklebust

Fix clnt.c to skip re-encoding an RPC call in the case when

we're writing over TCP and have done a partial send.
parent ca8832ea
...@@ -654,6 +654,7 @@ call_transmit(struct rpc_task *task) ...@@ -654,6 +654,7 @@ call_transmit(struct rpc_task *task)
if (task->tk_status < 0) if (task->tk_status < 0)
return; return;
/* Encode here so that rpcsec_gss can use correct sequence number. */ /* Encode here so that rpcsec_gss can use correct sequence number. */
if (!task->tk_rqstp->rq_bytes_sent)
call_encode(task); call_encode(task);
if (task->tk_status < 0) if (task->tk_status < 0)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment