Skip to content

Commit

Permalink
Handle EADDRINUSE message in IOException.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius authored and etehtsea committed Oct 11, 2016
1 parent 1a6f27a commit 7dfd5e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/jruby/Ruby.java
Expand Up @@ -4102,6 +4102,8 @@ public RaiseException newIOErrorFromException(final IOException ex) {
return newErrnoENFILEError();
case "Network is unreachable" :
return newErrnoENETUNREACHError();
case "Address already in use" :
return newErrnoEADDRINUSEError();
default :
if ( Platform.IS_WINDOWS ) {
if ( errorMessage.contains("connection was aborted") ) {
Expand Down

0 comments on commit 7dfd5e3

Please sign in to comment.