[nanomsg] Re: Interception hooks for testing.

  • From: Jeff Archer <jsarcher@xxxxxxxxxxxxxxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Fri, 4 Oct 2013 08:34:24 -0400

On Fri, Oct 4, 2013 at 8:20 AM, Paul Colomiets <paul@xxxxxxxxxxxxxx> wrote:

> Hi,
>
> On Fri, Oct 4, 2013 at 2:05 PM, Sriram Srinivasan <sriram@xxxxxxxxxx>
> wrote:
> > Hello all,
> >
> > First, thanks Martin, for a lovely, compact, useful bit of code.
> >
> > I have a question. Is there a way to introduce/simulate network
> partitions and slowdown in nanomsg, for testing purposes. Of course, I'd
> also want the partitions to heal.
> >
> > I can do that with LXC on Linux of course (Jepsen is a good example),
> but I was wondering if there's a nanomsg solution.
> >
>
> No there isn't. And I don't believe it belongs here. There are
> iptables, tc (traffic control) and other tools that do that job good
> enough.
>
> I disagree.  The code could be conditionally included into DEBUG builds
only and would allow nanomsg to be uniformly tested on all platforms
without requiring outside utility that may not be available on some
platforms.  I believe this level of defiend and supported by the project is
a requirement for an open source project to be truly successful.

Other related posts: