Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/ext/socket/RubyUDPSocket.java
Original file line number Diff line number Diff line change
@@ -433,6 +433,7 @@ public IRubyObject send(ThreadContext context, IRubyObject[] args) {
final String message = e.getMessage();
if (message != null) {
switch(message) {
case "Message too large": // Alpine Linux
case "Message too long":
throw runtime.newErrnoEMSGSIZEError();
}
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/runtime/Helpers.java
Original file line number Diff line number Diff line change
@@ -276,6 +276,7 @@ public static Errno errnoFromException(Throwable t) {

case "No space left on device" : return Errno.ENOSPC;
case "Too many open files" : return Errno.EMFILE;
case "Message too large" : // Alpine Linux
case "Message too long" : return Errno.EMSGSIZE;
}
if (Platform.IS_WINDOWS && errorMessage.contains("connection was aborted")) return Errno.ECONNRESET;

0 comments on commit cd91e46

Please sign in to comment.