Hopefully correct handling of partial sends