Apply patch to fix SSL server support
git-svn-id: file:///home/svn/framework3/trunk@6391 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
5f5dfbf823
commit
753c7aa7d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue