[PATCH] "address.GetPort() != 0" assertion for helpers on FreeBSD

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Tue, 08 Jan 2013 22:13:25 -0700

Hello,

    Some v3.3 and trunk helpers are broken on FreeBSD and possibly some
other non-Linux OSes. Squid using ssl_crtd, URL rewriter, and possibly
other helpers asserts on startup:

  assertion failed: comm.cc:800: "address.GetPort() != 0"

Our src/defines.h #include file requires sys/socket.h on FreeBSD for
AF_UNIX to be defined in time for IPC_* tests. I suspect a similar but
not-yet-exposed dependency exists for O_TEXT and friends.

The attached patch fixes the AF_UNIX bug in my tests. A better long-term
fix is welcomed.

Thank you,

Alex.

Received on Wed Jan 09 2013 - 05:13:31 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 10 2013 - 12:00:05 MST