Date: Thu, 28 Oct 2010 16:24:51 +0100 From: Pete French <petefrench@ticketswitch.com> To: to.my.trociny@gmail.com Cc: pjd@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: hast vs ggate+gmirror sychrnoisation speed Message-ID: <E1PBULT-000NAu-BN@dilbert.ticketswitch.com> In-Reply-To: <86wrp3wj67.fsf@kopusha.home.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> In hast_proto_send() we send header and then data. Couldn't it be that > remote_send and sync threads interfere and their packets are mixed? May be > some synchronization is needed here? Interesting - I haven't looked very closely at the code, but I didn't realise that more than one thread was in communication with the remote end. If that's true then theres always a possibility for mixed data if you are sending it in chunks surely ? > I set sleep(1) in hast_proto_send() between proto_send(header) and > proto_send(data). The error started to occur frequently. Where is the potential other write occuring ? I might try wrapping some locking round the calls to see what happens. -pete.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1PBULT-000NAu-BN>