Subject: failure to catch server unavailabilty
It's me again. The guy who needs to send messages from inside apps.
I devised a functional test, interacting with a GUI.
If the XMPP server name is correctly entered and alive, it works very well.
But if I enter the wrong server name, the library "hangs" forever.
Of course, a "wrong server name" is like "no server availability". Also, the same effect could be achieved stopping the service ( I'm using Jive Messenger ).
Trying to learn, I tested the "MiniClient" and things go alike: no event is available to catch a Connect failure. MiniClient hangs forever.
I tried to hack a little around ClientSocket.EndConnect ( in the catch section ) but at no luck.
Incidentally, a Dns failure ( could not resolve server name ) goes uncatched also.
But the cure for connection failure could be useful for Dns failure.
TIA
Marcelo
May be it's required a new event: OnConnectionFailure or so.
But I'm not in the place to make such a change on my own.
But if you could guide me a little, I can do and test the change and, of course, contribute the patched code.
I devised a functional test, interacting with a GUI.
If the XMPP server name is correctly entered and alive, it works very well.
But if I enter the wrong server name, the library "hangs" forever.
Of course, a "wrong server name" is like "no server availability". Also, the same effect could be achieved stopping the service ( I'm using Jive Messenger ).
Trying to learn, I tested the "MiniClient" and things go alike: no event is available to catch a Connect failure. MiniClient hangs forever.
I tried to hack a little around ClientSocket.EndConnect ( in the catch section ) but at no luck.
Incidentally, a Dns failure ( could not resolve server name ) goes uncatched also.
But the cure for connection failure could be useful for Dns failure.
TIA
Marcelo
May be it's required a new event: OnConnectionFailure or so.
But I'm not in the place to make such a change on my own.
But if you could guide me a little, I can do and test the change and, of course, contribute the patched code.