Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 261737 Details for
Bug 353955
<net-misc/stunnel-4.35: file descriptor leaks
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
stunnel-4.34-listen-queue.diff
stunnel-4.34-listen-queue.diff (text/plain), 2.17 KB, created by
Stefan Behte (RETIRED)
on 2011-02-07 16:40:34 UTC
(
hide
)
Description:
stunnel-4.34-listen-queue.diff
Filename:
MIME Type:
Creator:
Stefan Behte (RETIRED)
Created:
2011-02-07 16:40:34 UTC
Size:
2.17 KB
patch
obsolete
>Patch by Thomas Franco, rediffed for 4.34. > >diff -ru stunnel-4.34/src/options.c stunnel-4.34-listen-queue/src/options.c >--- stunnel-4.34/src/options.c 2010-09-14 17:09:36.000000000 +0200 >+++ stunnel-4.34-listen-queue/src/options.c 2010-12-06 22:14:15.610223090 +0100 >@@ -1473,6 +1473,24 @@ > break; > } > >+ /* listenqueue */ >+ switch(cmd) { >+ case CMD_INIT: >+ section->listenqueue=SOMAXCONN; >+ break; >+ case CMD_EXEC: >+ if(strcasecmp(opt, "listenqueue")) >+ break; >+ section->listenqueue=atoi(arg); >+ return (section->listenqueue?NULL:"Bad verify level"); >+ case CMD_DEFAULT: >+ s_log(LOG_NOTICE, "%-15s = %d", "listenqueue", SOMAXCONN); >+ break; >+ case CMD_HELP: >+ s_log(LOG_NOTICE, "%-15s = defines the maximum length the queue of pending connections may grow to", "listenqueue"); >+ break; >+ } >+ > if(cmd==CMD_EXEC) > return option_not_found; > return NULL; /* OK */ >diff -ru stunnel-4.34/src/prototypes.h stunnel-4.34-listen-queue/src/prototypes.h >--- stunnel-4.34/src/prototypes.h 2010-09-14 17:09:50.000000000 +0200 >+++ stunnel-4.34-listen-queue/src/prototypes.h 2010-12-06 22:06:39.217327586 +0100 >@@ -158,6 +158,7 @@ > int timeout_close; /* maximum close_notify time */ > int timeout_connect; /* maximum connect() time */ > int timeout_idle; /* maximum idle connection time */ >+ int listenqueue; /* Listen baklog */ > enum {FAILOVER_RR, FAILOVER_PRIO} failover; /* failover strategy */ > > /* protocol name for protocol.c */ >Seulement dans stunnel-4.34-listen-queue/src: prototypes.h~ >diff -ru stunnel-4.34/src/stunnel.c stunnel-4.34-listen-queue/src/stunnel.c >--- stunnel-4.34/src/stunnel.c 2010-08-20 11:01:35.000000000 +0200 >+++ stunnel-4.34-listen-queue/src/stunnel.c 2010-12-06 22:05:54.732885327 +0100 >@@ -204,7 +204,7 @@ > } > s_log(LOG_DEBUG, "Service %s bound to %s", > opt->servname, opt->local_address); >- if(listen(opt->fd, 5)) { >+ if(listen(opt->fd, opt->listenqueue)) { > sockerror("listen"); > return 0; > } >Seulement dans stunnel-4.34-listen-queue/src: stunnel.c~
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 353955
:
261731
|
261735
| 261737 |
261739
|
261741