[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] inet4: errno is not set correct

Well, I think the problem is bit more complex...

errno 318 is ENOTCONN,... cURL shouldn't be patched to generally ignore this error. It seems curl is trying to receive "too early". It seems that the connect() within cURL works out okay, but the kernel isn't really ready yet ( why does it say so when calling getseocketop(SOL_ERRNO)? Maybe the wrong value is returned there? ), so the first call to recv after connect is resulting in error because the socket is still (or again) in state ENOTCONN.

I gues putting an sleep() somewhere after connect() within curl would be a workaround, so that the kernel has some time to finish connection handshake. Just saying this to describe the error.