diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 1997-04-13 05:04:39 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 1997-04-13 05:04:39 +0000 |
commit | 5bac72acb6d7c3556f446a3273a0c218c80ae0b8 (patch) | |
tree | 17fbf6516eaf49a3e3b3184591999958829535bc /TAO/IIOP | |
parent | ad500a17e64b789f881c45b2684d734f0b9d6b51 (diff) | |
download | ATCD-5bac72acb6d7c3556f446a3273a0c218c80ae0b8.tar.gz |
Wow! This one really works on Solaris!
Diffstat (limited to 'TAO/IIOP')
-rw-r--r-- | TAO/IIOP/lib/giop.cpp | 5 | ||||
-rw-r--r-- | TAO/IIOP/lib/roa.cpp | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/TAO/IIOP/lib/giop.cpp b/TAO/IIOP/lib/giop.cpp index 3a148d894a3..99ed2d62d23 100644 --- a/TAO/IIOP/lib/giop.cpp +++ b/TAO/IIOP/lib/giop.cpp @@ -145,8 +145,9 @@ CORBA_Boolean GIOP::send_message(CDR& stream, ACE_SOCK_Stream& peer) { int h = peer.get_handle(); - send_message(stream, h); + CORBA_Boolean r = send_message(stream, h); peer.set_handle(h); + return r; } CORBA_Boolean @@ -1283,7 +1284,7 @@ GIOP::incoming_message ( delete req.object_key.buffer; CORBA_string_free (req.operation); - return; + return retval; } } diff --git a/TAO/IIOP/lib/roa.cpp b/TAO/IIOP/lib/roa.cpp index 924c1870852..81be1337d7b 100644 --- a/TAO/IIOP/lib/roa.cpp +++ b/TAO/IIOP/lib/roa.cpp @@ -27,6 +27,10 @@ ROA_Handler::open(void*) { if (activate(ACE_ROA::threadFlags()) == -1) ACE_ERROR_RETURN ((LM_ERROR, "ROA_Handler unable to spawn a thread: %p\n", "spawn"), -1); + else + ACE_DEBUG ((LM_DEBUG, + "(%P|%t) threaded connection from client %s\n", + addr.get_host_name())); } else { @@ -53,8 +57,10 @@ ROA_Handler::svc() { int result = 0; - while ((result = handle_input()) > 0) + ACE_DEBUG ((LM_DEBUG, "(%P|%t) ROA_Handler::svc begin\n")); + while ((result = handle_input()) >= 0) ; + ACE_DEBUG ((LM_DEBUG, "(%P|%t) ROA_Handler::svc end\n")); return result; } |