commit | b31e17107cfe5fe34e952657b846b1f93f568e88 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Apr 18 11:09:28 2016 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Apr 18 14:33:38 2016 -0700 |
tree | 5f18e39703e463db26ef7b912581d79eaeee7f6e | |
parent | 1607ea64cbdeea766c05d033afe0c65ea978b399 [diff] [blame] |
adb: increase the FD table size on Win32. 128 maximum FDs is a pretty low limit, which can easily be exhausted by port forwarding. Bump the maximum up to 2048, and add a test that checks whether we can actually use a few hundred sockets. Bug: https://code.google.com/p/android/issues/detail?id=12141 Bug: http://b/28246942 Change-Id: Ia4a2ff776e8e58ec13378756f19d80392679ece9
diff --git a/adb/sysdeps_win32.cpp b/adb/sysdeps_win32.cpp index a2f34fb..bc09fdc 100644 --- a/adb/sysdeps_win32.cpp +++ b/adb/sysdeps_win32.cpp
@@ -191,7 +191,7 @@ #define fh_socket u.socket #define WIN32_FH_BASE 2048 -#define WIN32_MAX_FHS 128 +#define WIN32_MAX_FHS 2048 static adb_mutex_t _win32_lock; static FHRec _win32_fhs[ WIN32_MAX_FHS ];