summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPool.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2007-01-26 03:26:55 +0000
committerMark Spruiell <mes@zeroc.com>2007-01-26 03:26:55 +0000
commit84537f2b0b1b92682292dca25f23dc7e73fcebeb (patch)
tree69c59d27cb1ef34251e5519abbf15465dc76f9df /java/src/IceInternal/ThreadPool.java
parentclean up and code re-org (diff)
downloadice-84537f2b0b1b92682292dca25f23dc7e73fcebeb.tar.bz2
ice-84537f2b0b1b92682292dca25f23dc7e73fcebeb.tar.xz
ice-84537f2b0b1b92682292dca25f23dc7e73fcebeb.zip
adding thread-per-connection settings for proxies & OAs
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r--java/src/IceInternal/ThreadPool.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java
index 1edbd267dc0..948c56d4418 100644
--- a/java/src/IceInternal/ThreadPool.java
+++ b/java/src/IceInternal/ThreadPool.java
@@ -33,12 +33,6 @@ public final class ThreadPool
_promote = true;
_warnUdp = _instance.initializationData().properties.getPropertyAsInt("Ice.Warn.Datagrams") > 0;
- //
- // If we are in thread per connection mode, no thread pool should
- // ever be created.
- //
- assert(!_instance.threadPerConnection());
-
String programName = _instance.initializationData().properties.getProperty("Ice.ProgramName");
if(programName.length() > 0)
{
@@ -74,7 +68,7 @@ public final class ThreadPool
//
// We use just one thread as the default. This is the fastest
- // psossible setting, still allows one level of nesting, and
+ // possible setting, still allows one level of nesting, and
// doesn't require to make the servants thread safe.
//
int size = _instance.initializationData().properties.getPropertyAsIntWithDefault(_prefix + ".Size", 1);
@@ -617,7 +611,7 @@ public final class ThreadPool
//
java.nio.channels.SelectionKey k = (java.nio.channels.SelectionKey)iter.next();
iter.remove();
- if(k.isValid() && key != _fdIntrReadKey)
+ if(k.isValid() && k != _fdIntrReadKey)
{
if(TRACE_SELECT)
{