The conditions of lack of success for apr_socket_create() should include a case where memory wasn't available to allocate for the creation of the APR socket structure, but I did not see evidence of this in either the Win32 or Unix versions of the APR library. Both functions call a void function alloc_socket() which does the allocation and then immediately sets members of the allocated socket, so they are obviously assuming the allocation occurred. Unfortunately, real software cannot be so sure. I was wondering if (1) the APR provided alternate functions which check for this failure case, and (2) how many APR functions are doing memory checking?

-Norman Tuttle, OpenDemand Systems Developer, [EMAIL PROTECTED]



Reply via email to