Github user masaori335 commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1438#discussion_r100647168
  
    --- Diff: iocore/net/BIO_fastopen.cc ---
    @@ -27,6 +27,67 @@
     
     #include "BIO_fastopen.h"
     
    +// For BoringSSL, which for some reason doesn't have this function.
    +// (In BoringSSL, sock_read() and sock_write() use the internal
    +// bio_fd_non_fatal_error() instead.) #1437
    +//
    +// The following is copied from
    +// 
https://github.com/openssl/openssl/blob/3befffa39dbaf2688d823fcf2bdfc07d2487be48/crypto/bio/bss_sock.c
    --- End diff --
    
    How about just add a function like this? We don't support WINDOWS and don't 
need those "#ifdef". Just checking error codes looks enough.
    ```
    static int
    non_fetal_error(int err)
    {
      if (err == EWOULDBLOCK || err == ENOTCONN || err == EINTR || err == 
EAGAIN || err == EPROTO || err == EINPROGRESS || err == EALREADY) {
        return 1;
      }
      return 0;
    }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to