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-09-02 13:44:28 +0200
commit55ca280f16473095380e22c574910f106b11058f (patch)
treef524607a18cce8e39c2cf9c0716659232e16c24c /radsecproxy.h
parent05b360612d4f1bb48caedc766ede2109024bdc6f (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 1e9dc42..bbb9b58 100644
--- a/radsecproxy.h
+++ b/radsecproxy.h
@@ -28,6 +28,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"
@@ -246,6 +247,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" */