If a weblogin implementation has > 1 weblogin servers (we have four),
and one of them is down with a hardware problem (not answering
connection attempts), then a bug in CosignModule can cause IIS to
Rapid-Fail the App Pool, shutting down that web service -- instead of
limping along on the three remaining servers.
The bug is in ConnectionList::Populate, where it fails on any socket error:
125 if ( connect( s, (struct sockaddr*)&sin, sizeof(struct
sockaddr_in) ) == SOCKET_ERROR ) {
126 throw( CosignError( (DWORD)WSAGetLastError(), __LINE__
- 1, __FUNCTION__ ) );
with this
00000018 7:14:43 PM [1352] [CosignModule] aiCur->ai_addr:
128.118.99.130
00000019 7:15:04 PM [1352] [CosignModule] Function:
ConnectionList::Populate
00000020 7:15:04 PM [1352] Line: 125
00000021 7:15:04 PM [1352] Error: 0x274c -- WSAETIMEDOUT
00000022 7:15:04 PM [1352] [CosignModule] A connection attempt
failed because the connected
party did not properly respond after a period of time, or established
connection failed because
connected host has failed to respond.
00000023 7:15:04 PM [1352] [CosignModule] Aw, snap! An error
initializaing!
00000024 7:15:04 PM [1352] [CosignModule] Error Initializing
cosignmodule object.
00000025 7:15:05 PM [1352] [CosignModule] CosignModuleFactory
constructed.
... (loop repeats)
The IIS Rapid-Fail Protection activates (default: 5 failures in 5
minutes) and shuts down the App Pool.
Perhaps the code should treat a socket error of WSAETIMEDOUT as a
non-terminal condition and proceed? If that is appropriate, there are
several other socket errors that should be lumped in with it.
-Phil
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Cosign-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cosign-discuss