Changeset 43 in Main for trunk/Server/http.c


Ignore:
Timestamp:
Sep 18, 2024, 6:19:03 PM (2 months ago)
Author:
Nishi
Message:

add NO_SSL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/http.c

    r23 r43  
    22
    33#define SOURCE
     4
     5#include "../config.h"
    46
    57#include "tw_http.h"
     
    6062                tv.tv_sec = 5;
    6163                tv.tv_usec = 0;
     64#ifndef NO_SSL
    6265                if(ssl == NULL || !SSL_has_pending(ssl)) {
     66#endif
    6367                        int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
    6468                        if(n <= 0) {
     
    6771                                return -1;
    6872                        }
    69                 }
     73#ifndef NO_SSL
     74                }
     75#endif
    7076                int len = tw_read(ssl, sock, buffer, 512);
    7177                if(len <= 0) break;
Note: See TracChangeset for help on using the changeset viewer.