Skip to content

Commit d466dcd

Browse files
committed
issue: 3586273 Use XLIO_DEFERRED_CLOSE by default
For incoming sockets - no change. For outgoing sockets - since outgoing sockets occupy local port, we should release it on socket destructor to prevent race from another socket to use the same port. This race might cause XLIO to hold 2 socket with the same RFS object at the same time, and this is fatal (particularly for TCP). Signed-off-by: Iftah Levi <[email protected]>
1 parent 1e18c6a commit d466dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/sys_vars.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ extern mce_sys_var &safe_mce_sys();
872872
#endif /* DEFINED_UTLS */
873873

874874
#define MCE_DEFAULT_LRO (option_3::AUTO)
875-
#define MCE_DEFAULT_DEFERRED_CLOSE (false)
875+
#define MCE_DEFAULT_DEFERRED_CLOSE (true)
876876
#define MCE_DEFAULT_TCP_ABORT_ON_CLOSE (false)
877877
#define MCE_DEFAULT_RX_POLL_ON_TX_TCP (false)
878878
#define MCE_DEFAULT_TRIGGER_DUMMY_SEND_GETSOCKNAME (false)

0 commit comments

Comments
 (0)