]> granicus.if.org Git - libevent/commitdiff
Decrease MAX_REQUESTS in test-fdleak
authorNick Mathewson <nickm@torproject.org>
Tue, 3 Apr 2012 19:43:40 +0000 (15:43 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 3 Apr 2012 19:44:21 +0000 (15:44 -0400)
We've got to do this because doing otherwise seems to freak out
windows XP.

test/test-fdleak.c

index 4f76f7ff4be15cf0a282802bb040e9d827a3b75e..d72917ad2029e2507c91501e2def9956b62c67b4 100644 (file)
 
 /* Number of requests to make. Setting this too high might result in the machine
    running out of ephemeral ports */
+#ifdef _WIN32
+#define MAX_REQUESTS 1000
+#else
 #define MAX_REQUESTS 4000
+#endif
 
 /* Provide storage for the address, both for the server & the clients */
 static struct sockaddr_in sin;