Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 353955 | Differences between
and this patch

Collapse All | Expand All

(-)stunnel-4.34/src/options.c (+18 lines)
Lines 1473-1478 Link Here
1473
        break;
1473
        break;
1474
    }
1474
    }
1475
1475
1476
    /* listenqueue */
1477
    switch(cmd) {
1478
    case CMD_INIT:
1479
        section->listenqueue=SOMAXCONN;
1480
        break;
1481
    case CMD_EXEC:
1482
        if(strcasecmp(opt, "listenqueue"))
1483
            break;
1484
        section->listenqueue=atoi(arg);
1485
        return (section->listenqueue?NULL:"Bad verify level");
1486
    case CMD_DEFAULT:
1487
        s_log(LOG_NOTICE, "%-15s = %d", "listenqueue", SOMAXCONN);
1488
        break;
1489
    case CMD_HELP:
1490
        s_log(LOG_NOTICE, "%-15s = defines the maximum length the queue of pending connections may grow to", "listenqueue");
1491
        break;
1492
    }
1493
1476
    if(cmd==CMD_EXEC)
1494
    if(cmd==CMD_EXEC)
1477
        return option_not_found;
1495
        return option_not_found;
1478
    return NULL; /* OK */
1496
    return NULL; /* OK */
(-)stunnel-4.34/src/prototypes.h (+1 lines)
Lines 158-163 Link Here
158
    int timeout_close; /* maximum close_notify time */
158
    int timeout_close; /* maximum close_notify time */
159
    int timeout_connect; /* maximum connect() time */
159
    int timeout_connect; /* maximum connect() time */
160
    int timeout_idle; /* maximum idle connection time */
160
    int timeout_idle; /* maximum idle connection time */
161
    int listenqueue; /* Listen baklog */
161
    enum {FAILOVER_RR, FAILOVER_PRIO} failover; /* failover strategy */
162
    enum {FAILOVER_RR, FAILOVER_PRIO} failover; /* failover strategy */
162
163
163
        /* protocol name for protocol.c */
164
        /* protocol name for protocol.c */
(-)stunnel-4.34/src/stunnel.c (-1 / +1 lines)
Lines 204-210 Link Here
204
            }
204
            }
205
            s_log(LOG_DEBUG, "Service %s bound to %s",
205
            s_log(LOG_DEBUG, "Service %s bound to %s",
206
                opt->servname, opt->local_address);
206
                opt->servname, opt->local_address);
207
            if(listen(opt->fd, 5)) {
207
            if(listen(opt->fd, opt->listenqueue)) {
208
                sockerror("listen");
208
                sockerror("listen");
209
                return 0;
209
                return 0;
210
            }
210
            }

Return to bug 353955