diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-26 22:51:55 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-26 22:51:55 +0000 |
commit | 6cfa34e5c6b49349175464de7320aabab5721c4d (patch) | |
tree | 23aa5bb93e9b660cf9a716058f11ebabda616f30 | |
parent | d6d482744c3c96a0e4975157e0a4d7e228626920 (diff) | |
download | ATCD-6cfa34e5c6b49349175464de7320aabab5721c4d.tar.gz |
Changed to use 127.0.0.1 and reduce the number of connector on Chorus.
-rw-r--r-- | tests/Thread_Pool_Reactor_Test.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/Thread_Pool_Reactor_Test.cpp b/tests/Thread_Pool_Reactor_Test.cpp index 6f48e10e3bf..f2331734d4b 100644 --- a/tests/Thread_Pool_Reactor_Test.cpp +++ b/tests/Thread_Pool_Reactor_Test.cpp @@ -58,14 +58,22 @@ USELIB("..\ace\aced.lib"); #include "tests/Thread_Pool_Reactor_Test.h" typedef ACE_Strategy_Acceptor <Acceptor_Handler, ACE_SOCK_ACCEPTOR> ACCEPTOR; -static ASYS_TCHAR *rendezvous = ASYS_TEXT ("localhost:10010"); -// Accepting end point. +static ASYS_TCHAR *rendezvous = ASYS_TEXT ("127.0.0.1:10010"); +// Accepting end point. This is actually "localhost:10010", +// but some platform couldn't resolve the name so we use the +// IP address directly here. static size_t svr_thrno = ACE_MAX_THREADS; // Total number of server threads. -static size_t cli_thrno = ACE_MAX_ITERATIONS; +static size_t cli_thrno = // Total number of client threads. +#if defined (CHORUS) // Add platforms that can't handle too many + // connection simultaneously here. + ACE_MAX_THREADS; +#else + ACE_MAX_ITERATIONS; // Otherwise, we'll try to torture the platform. +#endif static size_t cli_conn_no = ACE_MAX_ITERATIONS; // Total connection attemps of a client thread. |