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
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,
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. """
+ (iwtd, owtd, ewtd) = select.select(,
[self.__socket], ) #wait for connect!
n = self.__socket.send(data)