我们有一个进程挂起,并且 truss 显示它也尝试连接但失败并出现错误 ECONNREFUSED。手册页说以下内容,但为什么它一次又一次地被拒绝?
ECONNREFUSED The attempt to connect was force-
fully rejected. The calling program
should close(2) the socket descrip-
tor, and issue another
socket(3SOCKET) call to obtain a new
descriptor before attempting another
connect() call.
桁架-p 2145
/3: lwp_park(0x00000000, 0) (睡觉...)
/2: nanosleep(0xFFFFFFFF7B5FBE60, 0xFFFFFFFF7B5FBE50) (睡觉...)
/2:纳米睡眠(0xFFFFFFFF7B5FBE60,0xFFFFFFFF7B5FBE50)= 0
/2:so_socket(PF_INET,SOCK_STREAM,IPPROTO_TCP,“”,SOV_DEFAULT)= 17
/2: fcntl(17, F_SETFD, 0x00000001) = 0
/2: 连接(17, 0xFFFFFFFF7B5FBF40, 16, SOV_DEFAULT) Err#146 ECONNREFUSED
/2:关闭(17)= 0
/2: nanosleep(0xFFFFFFFF7B5FBE60, 0xFFFFFFFF7B5FBE50) (睡觉...)
/2:纳米睡眠(0xFFFFFFFF7B5FBE60,0xFFFFFFFF7B5FBE50)= 0
/2:so_socket(PF_INET,SOCK_STREAM,IPPROTO_TCP,“”,SOV_DEFAULT)= 17
/2: fcntl(17, F_SETFD, 0x00000001) = 0
/2: 连接(17, 0xFFFFFFFF7B5FBF40, 16, SOV_DEFAULT) Err#146 ECONNREFUSED
/2:关闭(17)= 0
/2: nanosleep(0xFFFFFFFF7B5FBE60, 0xFFFFFFFF7B5FBE50) (睡觉...)