You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/06/29 23:11:44 UTC

[trafficserver] branch 8.1.x updated: Retry read when fastopen_bread() get non fatal error (#6841)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.1.x by this push:
     new a42a97a  Retry read when fastopen_bread() get non fatal error (#6841)
a42a97a is described below

commit a42a97ab17bfba3ed09bee0c6cf458bdec37c365
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Thu Jun 25 08:57:14 2020 +0900

    Retry read when fastopen_bread() get non fatal error (#6841)
    
    (cherry picked from commit 6aef2b02cf36ce5704eea3502af3b891c6cadf3d)
---
 iocore/net/BIO_fastopen.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/BIO_fastopen.cc b/iocore/net/BIO_fastopen.cc
index 78af8fa..014d03a 100644
--- a/iocore/net/BIO_fastopen.cc
+++ b/iocore/net/BIO_fastopen.cc
@@ -159,7 +159,7 @@ fastopen_bread(BIO *bio, char *out, int outsz)
   if (err < 0) {
     errno = -err;
     if (BIO_sock_non_fatal_error(errno)) {
-      BIO_set_retry_write(bio);
+      BIO_set_retry_read(bio);
     }
   }