[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [azverkan@yahoo.com: Joe Orton please read: Overrrun a neon buffer size during svn merge URL URL]

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-12-22 22:43:02 CET

Joe Orton wrote:

>On Sun, Dec 22, 2002 at 06:34:15PM +0100, Branko Čibej wrote:
>>Judjung by the Windows Socket API docs, /nont/ of the socket functions
>>use errno on Windows. There's a (non-standard, of course) function that
>>returns the latest error code. Do you think this would work?
>>#ifdef WIN32
>>#define NEON_SOCK_ERRNO() errno
>>#define NEON_SOCK_ERRNO() WSAGetLastError()
>>Then use that macro wherever errno is being checked after a socket call.
>OK - a few questions: can the return value from WSAGetLastError() be
>passed to strerror() to get useful error strings,
Hmm, don't know. I can test it, though. Let's see... Nope, it's in a
different error space, which implies...

> and compared with
>ECONNRESET to detect a connection reset?
...that you can't do that, etither.

>Is select() one of the functions which doesn't use errno on Win32?
Oh, yes. It looks like none of them does.

Do I suspect correctly that Neon needs a bit of abstraction for sockets,
at least for error handling?

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 22 22:43:42 2002

This is an archived mail posted to the Subversion Dev mailing list.