Changeset 3f0b470 in mod_gnutls


Ignore:
Timestamp:
Oct 13, 2016, 3:23:21 PM (14 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, upstream
Children:
d26fa55
Parents:
4bc17ae
Message:

Macro for the OCSP socket timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_ocsp.c

    r8a0da86 r3f0b470  
    3535#define OCSP_RESP_TYPE "application/ocsp-response"
    3636
     37/* Default socket timeout for OCSP responder connections, in
     38 * seconds. Note that the timeout applies to "absolutely no data sent
     39 * or received", not the whole connection. 10 seconds in mod_ssl. */
     40#define OCSP_SOCKET_TIMEOUT 2
    3741
    3842
     
    453457    apr_socket_t *sock;
    454458    /* TODO: configurable timeout */
    455     apr_interval_time_t timeout = apr_time_from_sec(2);
     459    apr_interval_time_t timeout = apr_time_from_sec(OCSP_SOCKET_TIMEOUT);
    456460    while (sa)
    457461    {
Note: See TracChangeset for help on using the changeset viewer.