[zeromq-dev] Java: reference to context from socket

Martin Sustrik sustrik at 250bpm.com
Tue Aug 3 09:00:28 CEST 2010


gonzalo diethelm wrote:
> Hello, long time no see...

Hi Gonzalo!

> I modified class Socket to hold a local reference to the passed-in
> context, so that Java's GC won't be too eager to free the context while
> there are sockets in use.

Great! That missing was a bit scary. Are you going to commit the patch 
and close the bug report?

> I used to have commit access to the Java repo, but it seems I lost it
> when it was moved from sustrik to zeromq.

Strange. You are in the jzmq team that should have both push & pull 
access. Anyway, I've added you to the owners team. Can you try now?

> Hence I am attaching the
> patch. It includes many lines because I modified the end-lines to be
> Unix-compliant (LF), the real change is as follows. I understand LF is
> the norm in this project, if I am wrong I send my apologies in advance.

Yes. Unix endlines are the norm. Thanks for fixing that.

Martin



More information about the zeromq-dev mailing list