caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Garbage collector problem
@ 2016-12-07 22:30 picflo_2
  2016-12-07 22:47 ` Anders Fugmann
  0 siblings, 1 reply; 2+ messages in thread
From: picflo_2 @ 2016-12-07 22:30 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/html, Size: 816 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Garbage collector problem
  2016-12-07 22:30 [Caml-list] Garbage collector problem picflo_2
@ 2016-12-07 22:47 ` Anders Fugmann
  0 siblings, 0 replies; 2+ messages in thread
From: Anders Fugmann @ 2016-12-07 22:47 UTC (permalink / raw)
  To: picflo_2, caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-07 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-07 22:30 [Caml-list] Garbage collector problem picflo_2
2016-12-07 22:47 ` Anders Fugmann

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).