Open GoogleCodeExporter opened 9 years ago
Are you calling close during the DNS lookup, or during the attempt to connect?
I
assume during the DNS lookup by the use case you gave.
If the DNS query fails, then OnError fires, and no connection is made. What
happens
when the DNS query eventually returns for you? I would expect OnError to still
fire.
I'm having a hard time reproducing, since my DNS server is too fast. :)
Can you try compiling from source, and adding this bit of code to
XmppStream.cs, at
the end of Close(bool clean), about line 991?
else
{
FireOnError(new InvalidOperationException("Cannot close a socket
before it is open"));
}
and see what happens?
Original comment by hil...@gmail.com
on 31 Mar 2008 at 8:29
Original issue reported on code.google.com by
robbieha...@gmail.com
on 30 Mar 2008 at 7:30