[or-cvs] remember some thoughts about using WSAStartup to learn

Roger Dingledine arma at seul.org
Mon Mar 28 01:11:04 UTC 2005


Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common

Modified Files:
	compat.c 
Log Message:
remember some thoughts about using WSAStartup to learn
how many sockets we get to use on win32.


Index: compat.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- compat.c	14 Mar 2005 03:28:46 -0000	1.43
+++ compat.c	28 Mar 2005 01:11:02 -0000	1.44
@@ -1024,6 +1024,9 @@
     log_fn(LOG_WARN,"Error initializing windows network layer: code was %d",r);
     return -1;
   }
+  /* WSAData.iMaxSockets might show the max sockets we're allowed to use.
+   * We might use it to complain if we're trying to be a server but have
+   * too few sockets available. */
 #endif
   return 0;
 }



More information about the tor-commits mailing list