Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started



jiafu_181556 avatar image
jiafu_181556 asked jiafu_181556 edited

Why to set the so_linger to 0 instead of so_reuseaddr to reduce Timewait in Cassandra?

Hi, Excuse me, In Cassandra's code, Why to set the so_linger to 0 instead of keep default value: -1 and enable so_reuseaddr? 0 mean will drop the data when closing the socket. To reduce timewait's best choice is to enable so_reuseaddr. Can anybody help to explain this reason? I check many popular open source programs. they won't set this so_linger to 0 but enable so_reuseaddr

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

0 Answers