Fix case where amount of data sent is less than expected.  Otherwise, we will get hang when running the RGET protocol.
Reviewed by hjelm,bosilca.