Changeset 2038b76 in mod_gnutls


Ignore:
Timestamp:
Dec 12, 2018, 4:24:36 PM (5 weeks ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
f674424
Parents:
92cb0cc
Message:

Ensure nonblocking reads pass EAGAIN or EINTR status to caller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r92cb0cc r2038b76  
    269269                              "%s: looping recv after '%s' (%d)",
    270270                              __func__, gnutls_strerror(rc), rc);
    271                 /* For a blocking read: Loop and try again immediately. */
     271                /* For a blocking read, loop and try again
     272                 * immediately. Otherwise just notify the caller. */
    272273                if (ctxt->input_block != APR_NONBLOCK_READ)
    273274                    continue;
     275                else
     276                    ctxt->input_rc =
     277                        (rc == GNUTLS_E_AGAIN ? APR_EAGAIN : APR_EINTR);
    274278            } else if (rc == GNUTLS_E_REHANDSHAKE) {
    275279                /* A client has asked for a new Hankshake. Currently, we don't do it */
Note: See TracChangeset for help on using the changeset viewer.