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

Re: errno values over the net

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-11-27 20:29:17 CET

Greg Hudson <ghudson@MIT.EDU> writes:

> One of the bits of remaining polish is in how to pass src_err values
> over the wire when communicating error values. Although the most
> common errno values like ENOENT tend to have the same value on all
> systems, they aren't portable in general; for instance, ECONNRESET
> is 104 on Linux and 131 on Solaris.

I don't understand the problem. If your server process is linking
against libsvn_fs (which it must be), then it has access to the whole
APR error system and SVN error system (which is just an extension.)
Why not just move apr error codes over the wire? Both ends have
svn_error_codes.h and apr_error.h to interpret them. The whole point
of APR is to make error codes portable.

FWIW, mod_dav_svn marshalls the error code to the client in an xml
structure. You can do something similar, no?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 27 20:31:23 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.