On 06/04/2012 04:53 PM, MORITA Kazutaka wrote: > One possibility is that if forward_write_obj_req() fails before > receiving data, the next forward_(read|write)_obj_req() could be > interleaved. > > The below untested patch may fix the problem though the approach is a > poor way. This fix doesn't fix anything. I wrote a workaround: use connect_to() inside forward_write_obj_req(), and close(fd) when out of function. The problem is gone. Thanks, Yuan |