Socket buffer fixes.