buf fix for w/o shutdown()