On 03.06.2013 14:54, Caldarale, Charles R wrote: >> From: Mark Thomas [mailto:ma...@apache.org] >> Subject: Re: APR/native errors with non-blocking I/O > >> I'm thinking something along the lines of the following: > >> if (ss == APR_SUCCESS) >> return (jint)sent; >> else if ((APR_STATUS_IS_EAGAIN(ss) || ss == TCN_EAGAIN) && sent > 0) { >> return (jint)sent; >> } else { >> TCN_ERROR_WRAP(ss); >> return -(jint)ss; >> } > > Looks reasonable - just get rid of the else keywords, since each condition > ends with a return.
+1 I guess this is for sendb and also sendbb? Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org