If the method returns before the second direction is done, the socket may be closed or the error ignored. Typically not a problem, in most cases when a direction is closed the other is also done, but for some protocols it may matter, and it seems
the correct way to handle.
If the method returns before the second direction is done, the socket may be closed or the error ignored. Typically not a problem, in most cases when a direction is closed the other is also done, but for some protocols it may matter, and it seems the correct way to handle.