]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
static bufs are not shared anymore, even if that means more memory.
authorerdgeist <>
Wed, 21 Nov 2007 01:55:59 +0000 (01:55 +0000)
committererdgeist <>
Wed, 21 Nov 2007 01:55:59 +0000 (01:55 +0000)
ot_accesslist.c
ot_udp.c

index 0f46a0009d94562ff840c36b9d79d703006f2343..e1774fb8adf96894b0c80dce7f8a38971afb6d3a 100644 (file)
@@ -18,6 +18,7 @@
 #ifdef WANT_ACCESS_CONTROL
 static char *accesslist_filename = NULL;
 static ot_vector accesslist;
+static char static_inbuf[8192];
 
 static void accesslist_reset( void ) {
   free( accesslist.data );
index 61624c52cb68a5994cc34ea349436bb105ab3b97..af4bdc95e328936f369a03f078a1cdfb5d5027e9 100644 (file)
--- a/ot_udp.c
+++ b/ot_udp.c
@@ -14,6 +14,9 @@
 #include "ot_udp.h"
 #include "ot_stats.h"
 
+static char static_inbuf[8192];
+static char static_outbuf[8192];
+
 /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */
 void handle_udp4( int64 serversocket ) {
   ot_peer     peer;