浏览代码

remember some thoughts about using WSAStartup to learn
how many sockets we get to use on win32.


svn:r3905

Roger Dingledine 20 年之前
父节点
当前提交
80901fde69
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/common/compat.c

+ 3 - 0
src/common/compat.c

@@ -1024,6 +1024,9 @@ int network_init(void)
     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;
 }