Changeset 608

Show
Ignore:
Timestamp:
12/05/07 10:14:52 (1 year ago)
Author:
blackhedd
Message:

extended connection_completed fix to Unix-domain clients

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/lib/pr_eventmachine.rb

    r607 r608  
    651651      if @pending 
    652652        @pending = false 
    653         EventMachine::event_callback uuid, ConnectionCompleted, "" 
     653        if 0 == io.getsockopt(Socket::SOL_SOCKET, Socket::SO_ERROR).unpack("i").first 
     654          EventMachine::event_callback uuid, ConnectionCompleted, "" 
     655        end 
    654656      else 
    655657        super