caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anders Fugmann <anders@fugmann.net>
To: picflo_2@web.de, caml-list@inria.fr
Subject: Re: [Caml-list] Garbage collector problem
Date: Wed, 7 Dec 2016 23:47:20 +0100	[thread overview]
Message-ID: <cd212730-47a9-98c6-4f92-a228736b9cb4@fugmann.net> (raw)
In-Reply-To: <trinity-15a3a0ff-7eb5-41a1-b20a-14526c58c512-1481149827640@3capp-webde-bs14>

Hi Florian,

This error is produced by ocaml-zmq bindings when finalizer is called on 
a context that has not been explicitly closed.

You should make sure the call Context.terminate on the context before 
exiting your program to make sure that all messages are flushed properly.

/Anders


On 2016-12-07 23:30, picflo_2@web.de wrote:
> Hi,
>
> I use Lwt and Zmq for a distributed system. I added pings to check if a
> server is still alive, but after exchanging a couple of messages
> I get this Error: Context not closed before finalization.
>
> I have posted the minimal reproducer on pastebin
>
> The client: http://pastebin.com/wDLZYQmf
> and
> The server: http://pastebin.com/gdpbXh3x
>
> Is there some obvious mistake i have made or should I just file a bug
> report for the lwt zmq bindings?
>
> Best regards,
>
> Florian


      reply	other threads:[~2016-12-07 22:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-07 22:30 picflo_2
2016-12-07 22:47 ` Anders Fugmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd212730-47a9-98c6-4f92-a228736b9cb4@fugmann.net \
    --to=anders@fugmann.net \
    --cc=caml-list@inria.fr \
    --cc=picflo_2@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).