Adding UDP/TCP/Unix socket support to rlm_linelog
Phil Mayers
p.mayers at imperial.ac.uk
Mon Mar 23 15:47:42 CET 2015
On 20/03/2015 18:31, Arran Cudbard-Bell wrote:
> I'd appreciate comments and feedback on the socket code. It was
> written the code editor open in one window, and pubs.opengroup.org in
> the other, but that doesn't mean it will actually work the way it was
> intended across multiple platforms.
Very likely not, in all cases :o(
>
> Doing write(fd, NULL, 0); to check for socket connectedness seems
> like it's going to blow up somewhere at some point, so suggestions
> for what to do to get pending errors would be very helpful.
I'd advise looking at the libevent code to see what they do. There
should probably be some version of that lisp quote, but for libevent ;o)
TBH it seems crazy-broken that OS X isn't returning pending errors but
does then return an error on write(). Maybe that's an OS X bug? What
type of sockets was this with?
More information about the Freeradius-Devel
mailing list