Apply patch to fix SSL server support

git-svn-id: file:///home/svn/framework3/trunk@6391 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-03-25 16:41:10 +00:00
parent 5f5dfbf823
commit 753c7aa7d5
1 changed files with 11 additions and 6 deletions

View File

@ -142,6 +142,7 @@ protected
# Accept the new client connection
if (sd and sd[0].length > 0)
begin
cli = accept
next unless cli
@ -150,6 +151,10 @@ protected
self.clients << cli
on_client_connect(cli)
# Skip exceptions caused by accept() [ SSL ]
rescue ::EOFError, ::Errno::ECONNRESET, ::Errno::ENOTCONN, ::Errno::ECONNABORTED
end
end
rescue ::Exception
@ -176,7 +181,7 @@ protected
sd[0].each { |fd|
begin
on_client_data(fd)
rescue EOFError
rescue ::EOFError, ::Errno::ECONNRESET, ::Errno::ENOTCONN, ::Errno::ECONNABORTED
on_client_close(fd)
close_client(fd)
rescue ::Interrupt