< prev index next >

src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c

Print this page
rev 13048 : 8203369: Check for both EAGAIN and EWOULDBLOCK error codes
Reviewed-by: alanb

*** 1,7 **** /* ! * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 109,119 **** /* ECONNABORTED => restart accept */ } if (newfd < 0) { free((void *)sa); ! if (errno == EAGAIN) return IOS_UNAVAILABLE; if (errno == EINTR) return IOS_INTERRUPTED; JNU_ThrowIOExceptionWithLastError(env, "Accept failed"); return IOS_THROWN; --- 109,119 ---- /* ECONNABORTED => restart accept */ } if (newfd < 0) { free((void *)sa); ! if (errno == EAGAIN || errno == EWOULDBLOCK) return IOS_UNAVAILABLE; if (errno == EINTR) return IOS_INTERRUPTED; JNU_ThrowIOExceptionWithLastError(env, "Accept failed"); return IOS_THROWN;
< prev index next >