summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-08-26 10:35:12 +0200
committerLinus Nordberg <linus@nordberg.se>2013-08-26 11:49:59 +0200
commit9174b0aca94fae0c483e2ae10608d660dc52f9c4 (patch)
treeb68721bed0ae254b0a23a12bd1577acbf57e5021 /radsecproxy.h
parent500c70ce169a9bc700ed4f05fa9c37e7df13a387 (diff)
Create threads with a 32 KB stack rather than what happens to be the default.
On Linux, the default stack size is typically 8 MB. Patch by Fabian Mauchle.
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/radsecproxy.h b/radsecproxy.h
index e0b2696..0b2aebe 100644
--- a/radsecproxy.h
+++ b/radsecproxy.h
@@ -23,6 +23,7 @@
#define MAX_CERT_DEPTH 5
#define STATUS_SERVER_PERIOD 25
#define IDLE_TIMEOUT 300
+#define PTHREAD_STACK_SIZE 32768
/* 27262 is vendor DANTE Ltd. */
#define DEFAULT_TTL_ATTR "27262:1"
@@ -241,6 +242,7 @@ int radsrv(struct request *rq);
void replyh(struct server *server, unsigned char *buf);
struct addrinfo *resolve_hostport_addrinfo(uint8_t type, char *hostport);
uint8_t *radattr2ascii(struct tlv *attr);
+pthread_attr_t pthread_attr;
/* Local Variables: */
/* c-file-style: "stroustrup" */