Re: [PATCH 1/2] kvm tools: Respect guest tcp window size

2012-08-23 Thread Pekka Enberg
On Thu, Aug 23, 2012 at 12:36 PM, Asias He wrote: >>> while (1) { >>> + pos = payload; >>> >>> ret = read(sk->fd, payload, UIP_MAX_TCP_PAYLOAD); >>> >>> if (ret <= 0 || ret > UIP_MAX_TCP_PAYLOAD) >>> goto out; >>> >>> -

Re: [PATCH 1/2] kvm tools: Respect guest tcp window size

2012-08-23 Thread Asias He
On Thu, Aug 23, 2012 at 5:31 PM, Pekka Enberg wrote: > On Thu, Aug 23, 2012 at 4:26 AM, Asias He wrote: >> Respect guest tcp window size and stop sending tcp segments to guest >> if guest's receive window is closed. >> >> This fixes the TCP hang I'm seeing where guest and host are transferring >>

Re: [PATCH 1/2] kvm tools: Respect guest tcp window size

2012-08-23 Thread Pekka Enberg
On Thu, Aug 23, 2012 at 4:26 AM, Asias He wrote: > Respect guest tcp window size and stop sending tcp segments to guest > if guest's receive window is closed. > > This fixes the TCP hang I'm seeing where guest and host are transferring > big chuck of data. Awesome! > This problem was not trigger

[PATCH 1/2] kvm tools: Respect guest tcp window size

2012-08-22 Thread Asias He
Respect guest tcp window size and stop sending tcp segments to guest if guest's receive window is closed. This fixes the TCP hang I'm seeing where guest and host are transferring big chuck of data. This problem was not triggered when guest and external host communicates, probably because guest to