[PATCH] KExtendedSocket crashes
Thiago Macieira
thiagom at wanadoo.fr
Sat Nov 16 17:42:12 GMT 2002
Adriaan de Groot wrote:
> It's hard to track down without taking out your complete network
> connectivity. As such it's a real bear to find. I stopped looking when it
> reached doLookup().
I believe the problem to be deeper down. In kde_getaddrinfo (netsupp.cpp) or
even with the system's getaddrinfo(3).
>> IO_LookupError errors don't keep errno value as their
>> second value. Instead, I'd set this to EAI_AGAIN.
>
>OK, will do that. Since it's not documented (well, not in 3.0.4 which is
> what I'm looking at), I figured EAGAIN was the nearest thing to being
> sensible.
True. I wrote that the values are undefined as of now so that no one uses them
to tell what the error is. But, in truth, the error value stored is that of
getaddrinfo(3). The only problem is that the constants are not present in
every system, so the systems lacking them couldn't test the error codes.
As I said below, it's just a matter of writing a function to translate from
one set of constants to another.
>Will commit to BRANCH and HEAD in connect() and listen() and mark it as
> FIXME for later.
This is a bugfix, even if a minor one that happens only in very specific
conditions.
--
Thiago Macieira - UFOT Registry number: 1001
thiagom at mail.com
ICQ UIN: 1967141 PGP/GPG: 0x6EF45358
Registered Linux user #65028
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021116/8197e61f/attachment.sig>
More information about the kde-core-devel
mailing list