chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New egg: nng


From: Arnaud Bailly
Subject: Re: New egg: nng
Date: Mon, 1 Nov 2021 08:09:06 +0100

<Slightly off-topic>
I am currently using 0MQ (not in chicken though) and have been looking at nng for a while, but unsure how mature it is.
What's your feedback using it? What are you using it for?

Just curious :)

 
-- 
Arnaud Bailly - @dr_c0d3


On Sun, Oct 31, 2021 at 9:19 PM Ariela Wenner <arisunz@disroot.org> wrote:

So, here's a followup

I linked pthreads and added the things you suggested to the wiki.

As for the hangs, I hate to say this but it seems like the test was the problem.
More precisely, it seems like the topic for the subscriber socket wasn't set
fast enough, so when the publisher socket sent a message, the subscriber wasn't
ready for it. Hang.

I added some coordination in the test itself and ran the tests over 100 times
just to be sure. No hang. Maybe I'm just being extremely unlucky though, so as
always feedback is appreciated.

Just pushed a new tag with the changes, fingers crossed.

On Sun, 31 Oct 2021 09:59:37 -0300
Ariela Wenner <arisunz@disroot.org> wrote:

> Hi Mario!
>
> Thanks for the feedback! I'll be fixing the minor issues when I have time.
>
> As for the hang... yeah, damn. That's a bug I THOUGHT I had fixed but apparently not. It's weird that it only happens with pub-sub, and only sometimes. If anyone knows what might be going on hmu, help is immensely appreciated.
>
> I'll try re-submitting again after the issues are fixed.
>
> Thanks again! Cheers.
>
>
> El 31 de octubre de 2021 7:03:20 a. m. GMT-03:00, Mario Domenech Goulart <mario@parenteses.org> escribió:
> >Hi Ariela,
> >
> >On Fri, 29 Oct 2021 13:35:52 -0300 Ariela Wenner <arisunz@disroot.org> wrote:
> >
> >> Hi all! I'd like to add my nng egg to the coop. Went through test-new-egg and everything seems fine.
> >>
> >> Release info is at https://gitlab.com/ariSun/chicken-nng/-/raw/main/nng.release-info
> >>
> >> Wiki page is http://wiki.call-cc.org/eggref/5/nng
> >>
> >> This is the first time I publish an egg so please let me know if something's wrong.
> >
> >Thanks!  That looks very interesting.
> >
> >I've tried to test your egg as part of the setup procedure of our test
> >machines and stumbled upon a couple of issues.  I'm using the following
> >environment:
> >
> >* Debian 10.11
> >* GCC 8.3.0
> >* x86 system (32bit)
> >* CHICKEN 5.2.0
> >* nng version 1.5.2
> >
> >I'm able to compile and install the egg, but when I run tests I get
> >
> >  csi: symbol lookup error: .../lib/chicken/11/nng.so: undefined symbol: pthread_mutexattr_init
> >
> >I can work around that by using
> >
> >diff --git a/nng.egg b/nng.egg
> >index 782ce6c..f5b4f9a 100644
> >--- a/nng.egg
> >+++ b/nng.egg
> >@@ -5,6 +5,6 @@
> >  (test-dependencies test uuid)
> >  (dependencies foreigners srfi-18 srfi-69)
> >  (components (extension nng
> >-                        (csc-options "-L" "-lnng")
> >+                        (csc-options "-L" "-lnng" "-L" "-lpthread")
> >                         (source "src/nng.scm")))
> >  (version 0.2.0))
> >
> >
> >But then tests apparently hang in "tcp pub-sub":
> >
> >-- testing nng ---------------------------------------------------------------
> >non-blocking ......................................................... [ PASS]
> >tcp req-rep .......................................................... [ PASS]
> >inproc req-rep ....................................................... [ PASS]
> >tcp push-pull ........................................................ [ PASS]
> >inproc push-pull ..................................................... [ PASS]
> >tcp pair ............................................................. [ PASS]
> >inproc pair .......................................................... [ PASS]
> >tcp pub-sub ..........................................................
> >
> >strace doesn't help much:
> >
> >$ strace -p 19841
> >strace: Process 19841 attached
> >restart_syscall(<... resuming interrupted poll ...>
> >
> >Would you know what can be wrong?
> >
> >Regarding the documentation, a few notes:
> >
> >* Please use the actual egg name as main heading (s/chicken-nng/nng/)
> >
> >* It would be nice to mention which versions of nng the egg is supposed
> >  to be compatible with.  At least the versions it is known to work with.
> >
> >* Please add the following sections to the documentation:
> >  * a "Repository" section with a link to the source repository
> >  * a "License" section mentioning the license of the egg (should match
> >    what's specified in the .egg file
> >
> >All the best.
> >Mario
> >--
> >http://parenteses.org/mario
> >
>
> --
> Ariela Wenner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]