Changeset b732220 in mod_gnutls


Ignore:
Timestamp:
Feb 23, 2023, 6:54:09 AM (4 weeks ago)
Author:
GitHub <noreply@…>
Branches:
main, master
Children:
b2b3700, bb23c8e
Parents:
81bfee7 (diff), d7eec4e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Airtower <fiona.klute@…> (02/23/23 06:54:09)
git-committer:
GitHub <noreply@…> (02/23/23 06:54:09)
Message:

Merge pull request #15 from airtower-luna/fix-timeup-loop

Fix loop in blocking read on transport timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r81bfee7 rb732220  
    33 *  Copyright 2008 Nikos Mavrogiannopoulos
    44 *  Copyright 2011 Dash Shendy
    5  *  Copyright 2015-2020 Fiona Klute
     5 *  Copyright 2015-2022 Fiona Klute
    66 *
    77 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    278278                ctxt->input_rc = APR_EGENERAL;
    279279                break;
     280            } else if (rc == GNUTLS_E_PULL_ERROR
     281                       && APR_STATUS_IS_TIMEUP(ctxt->input_rc)) {
     282                ap_log_cerror(
     283                    APLOG_MARK, APLOG_TRACE2, ctxt->input_rc, ctxt->c,
     284                    "%s: transport read timed out", __func__);
    280285            } else {
    281286                /* Some Other Error. Report it. Die. */
     
    10041009        {
    10051010            ctxt->input_rc = rc;
    1006             gnutls_transport_set_errno(ctxt->session, EAGAIN);
     1011            gnutls_transport_set_errno(ctxt->session, ETIMEDOUT);
    10071012            return -1;
    10081013        }
Note: See TracChangeset for help on using the changeset viewer.