Change to allow multiple send and recv for a thread.