summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ConnectionRequestHandler.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-12-12 18:54:19 +0100
committerBenoit Foucher <benoit@zeroc.com>2007-12-12 18:54:19 +0100
commit3dff2b82d498d2e29dc4c42c4053557e16a373d4 (patch)
tree4242da8678ce8f36e34b9d821212cf78519af415 /java/src/IceInternal/ConnectionRequestHandler.java
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-3dff2b82d498d2e29dc4c42c4053557e16a373d4.tar.bz2
ice-3dff2b82d498d2e29dc4c42c4053557e16a373d4.tar.xz
ice-3dff2b82d498d2e29dc4c42c4053557e16a373d4.zip
Fixed bug 2592
Diffstat (limited to 'java/src/IceInternal/ConnectionRequestHandler.java')
-rw-r--r--java/src/IceInternal/ConnectionRequestHandler.java32
1 files changed, 11 insertions, 21 deletions
diff --git a/java/src/IceInternal/ConnectionRequestHandler.java b/java/src/IceInternal/ConnectionRequestHandler.java
index 2f1b1c031ed..727ad6244d9 100644
--- a/java/src/IceInternal/ConnectionRequestHandler.java
+++ b/java/src/IceInternal/ConnectionRequestHandler.java
@@ -33,24 +33,21 @@ public class ConnectionRequestHandler implements RequestHandler
sendRequest(Outgoing out)
throws LocalExceptionWrapper
{
- return (!_connection.sendRequest(out, _compress, _response) || _response) ? _connection : null;
+ if(!_connection.sendRequest(out, _compress, _response) || _response)
+ {
+ return _connection; // The request has been sent or we're expecting a response.
+ }
+ else
+ {
+ return null; // The request hasn't been sent yet.
+ }
}
public void
sendAsyncRequest(OutgoingAsync out)
+ throws LocalExceptionWrapper
{
- try
- {
- _connection.sendAsyncRequest(out, _compress, _response);
- }
- catch(LocalExceptionWrapper ex)
- {
- out.__finished(ex);
- }
- catch(Ice.LocalException ex)
- {
- out.__finished(ex);
- }
+ _connection.sendAsyncRequest(out, _compress, _response);
}
public boolean
@@ -62,14 +59,7 @@ public class ConnectionRequestHandler implements RequestHandler
public void
flushAsyncBatchRequests(BatchOutgoingAsync out)
{
- try
- {
- _connection.flushAsyncBatchRequests(out);
- }
- catch(Ice.LocalException ex)
- {
- out.__finished(ex);
- }
+ _connection.flushAsyncBatchRequests(out);
}
public Outgoing