#29 empty list_initial_services() on HPUX

v1.3
open
nobody
5
2005-11-14
2005-11-14
Anonymous
No

When connecting from speedy python client to lazy remote
BEA server I got empty list after list_initial_services().

I noticed, that when python interpret works quickly, it
attemps
to send() before asynchronous connect() finishes?!
This leads on HPUX to error 232 Connection reset by
peer after recv().
Client application sees CORBA.COMM_FAILURE(0,
CORBA.COMPLETED_MAYBE)

I see it's necessary wait for "write enabled" before send.
I tried succesfully the following patch to fix the problem:

*** orb/IIOPConnection.py.orig Mon Oct 28 08:30:47 2002
--- orb/IIOPConnection.py Mon Nov 14 11:26:58 2005
***************
*** 131,136 ****
--- 131,137 ----
""" Send as much of the data as we can. """

try:
+ (iwtd, owtd, ewtd) = select.select([],
[self.__socket], []) #wait for connect!
n = self.__socket.send(data)

except socket.error:

Discussion


Log in to post a comment.