> 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. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"