[sheepdog] [PATCH 3/3] gateway: fix poll() hang

Liu Yuan namei.unix at gmail.com
Tue Sep 4 12:11:46 CEST 2012


On 09/04/2012 05:23 PM, MORITA Kazutaka wrote:
> We should add the following code here to avoid false timeout.
> 
>         if (req->rq.epoch == sys_epoch)
>                 goto again;
> 
> And if we add this code here, sheep doesn't return
> SD_RES_NETWORK_ERROR wrongly at all.  If poll timeout works
> efficiently, we don't need to check socket buffer, no?

Hmm, yes, we can poll again to minimize the false timeout. I also find
check send buffer is kind of tricky. Let me try this approach and see.

Thanks,
Yuan



More information about the sheepdog mailing list