Changeset 230

Show
Ignore:
Timestamp:
08/08/06 16:30:41 (2 years ago)
Author:
blackhedd
Message:

fixed a missing code branch that was causing a fatal exception
to be thrown when connecting to remote servers on FreeBSD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/ext/em.cpp

    r229 r230  
    410410                // even if the connection is intramachine or to 
    411411                // localhost. 
    412                 //throw std::runtime_error ("unimplemented"); 
     412 
     413                /* Changed this branch 08Aug06. Evidently some kernels 
     414                 * (FreeBSD for example) will actually return success from 
     415                 * a nonblocking connect. This is a pretty simple case, 
     416                 * just set up the new connection and clear the pending flag. 
     417                 * Thanks to Chris Ochs for helping track this down. 
     418                 * This branch never gets taken on Linux or (oddly) OSX. 
     419                 * The original behavior was to throw an unimplemented, 
     420                 * which the user saw as a fatal exception. Very unfriendly. 
     421                 */ 
    413422                ConnectionDescriptor *cd = new ConnectionDescriptor (sd); 
    414423                if (!cd) 
  • version_0/RELEASE_NOTES

    r208 r230  
    22 
    33RUBY/EventMachine RELEASE NOTES 
     4 
     5-------------------------------------------------- 
     6Version: 0.7.0, released xxAug06 
     7Added a fix in em.cpp/ConnectToServer to fix a fatal exception that 
     8occurred in FreeBSD when connecting successfully to a remote server. 
    49 
    510--------------------------------------------------