net: getting setsockopt: invalid argument
when setting TCP keep-alive on Solaris
#64251
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Solaris
Milestone
During my work on CL 542275, I discovered a uncanny failure on Solaris: the existing code of setting the TCP keep-alive via
SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPALIVE_THRESHOLD, msecs)
always failed withsetsockopt: invalid argument
, resulting in failures from newly added tests:Judging from the failure outputs, I suspect that the existing code of setting keep-alive parameters on solaris had been failing before CL 542275 which only splits the original function
setKeepAlivePeriod
on solaris and doesn't change how the code used to work, I think there was something wrong with theSetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPALIVE_THRESHOLD, msecs)
system call on solaris, we just didn't notice this failure because that portion of the code has never been tested.Filing this bug report for not blocking CL 542275 from an existing bug.
The text was updated successfully, but these errors were encountered: