我們有一個掛起的過程,桁架顯示它也嘗試連接,但因錯誤ECONNREFUSED而失敗。 手冊頁說了以下內容,但爲什麼一次又一次被拒絕?如何處理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(00000000,0)(昏睡...)
/2:了nanosleep(0xFFFFFFFF7B5FBE60,0xFFFFFFFF7B5FBE50)(昏睡...)
/2:了nanosleep(0xFFFFFFFF7B5FBE60,0xFFFFFFFF7B5FBE50)= 0
/2:so_socket(PF_INET,SOCK_STREAM,IPPROTO_TCP, 「」,SOV_DEFAULT)= 17
/2:的fcntl(17,F_SETFD,00000001)= 0
/2:連接(17,0xFFFFFFFF7B5FBF40,16,SOV_DEFAULT)錯誤#146 ECONNREFUSED
/2:關閉(17)= 0
/2:了nanosleep(0xFFFFFFFF7B5FBE60,0xFFFFFFFF7B5FBE50)(昏睡...)
/2:了nanosleep(0xFFFFFFFF7B5FBE60,0xFFFFFFFF7B5FBE50)= 0
/2:so_socket(PF_INET,SOCK_STREAM, IPPROTO_TCP, 「」,SOV_DEFAULT)= 17
/2:的fcntl(17,F_SETFD,00000001)= 0
/2:連接(17,0xFFFFFFFF7B5FBF40,16,SOV_DEFAULT)錯誤#146 ECONNREFUSED
/2:關閉(17)= 0
/2:了nanosleep(0xFFFFFFFF7B5FBE60,0xFFFFFFFF7B5FBE50)(昏睡...)
實際上這個過程是一個oracle監聽器,它是一個服務器而不是客戶端。所以這很奇怪,因爲這個錯誤只發生在客戶端進程上,對吧? – Daniel 2009-07-12 12:42:23