[freetds] [0.95rc2] Preliminary test results

Frediano Ziglio freddy77 at gmail.com
Tue May 12 23:27:02 EDT 2015


2015-05-12 23:10 GMT+01:00 Frediano Ziglio <freddy77 at gmail.com>:
> 2015-05-12 21:07 GMT+01:00 Sergio NNX <sfhacker at hotmail.com>:

....

>
>>
>>>> freeclose test output
>>>>
>>>> [...]
>>>> Error finding last socket opened
>>>> FAIL freeclose.exe (exit status: 1)
>>>>
>>
>>> Can you try the attached version?
>>
>> It didn't work. Same error message as before.
>> I'd like to understand that test. What's a typical result for this function: odbc_find_last_socket(void)?
>> What's a common (or default) value for ip remote addr and remote port? Show me an example.
>>
>> Thanks for your time.
>>
>> Sergio.
>>
>
> This function is quite an hack function. It try to discover the last
> socket connection opened. So it try to scan a lot of possible handles
> (numerically 4096 starting from 4, so 4, 8, 12, 16 ... etc) and call
> some function to check if they are really sockets (getpeername and
> getsockname). I also recently changed to discard pair of socketpair
> (two sockets attached together).
>
> I attached a new version, should handle IPv6 addresses (unfortunately
> sizeof(struct sockaddr) < sizeof(struct sockaddr_in6) on Windows).
>


Sorry, silly mistake in attachment

Frediano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeclose.c
Type: text/x-csrc
Size: 11465 bytes
Desc: not available
URL: <http://lists.ibiblio.org/pipermail/freetds/attachments/20150513/9717e2a8/attachment.bin>


More information about the FreeTDS mailing list