Search found 5 matches

by camryfu
Thu Oct 09, 2014 9:36 am
Forum: Support and Development
Topic: (SOLVED) I can't close program if...
Replies: 11
Views: 6769

Re: (SOLVED) I can't close program if...

According to the documentation it actually returns 0 on success, but I'm not sure not being able to connect is a failure condition for it. (Because otherwise, why would it queue? It's probably trying to reconnect behind the scenes.) This is my debug capture: https://dl.dropboxusercontent.com/u/2614...
by camryfu
Thu Oct 09, 2014 3:38 am
Forum: Support and Development
Topic: (SOLVED) I can't close program if...
Replies: 11
Views: 6769

Re: I can't close program if...

I know I must make sure that server is up by checking result on sender:connect, but unfortunately it always return "True". That's why there is one variable "r" in my code, I have tried it. I am happy you resolved the issue, just a quick question... As you stated "but unfort...
by camryfu
Thu Oct 09, 2014 3:00 am
Forum: Support and Development
Topic: (SOLVED) I can't close program if...
Replies: 11
Views: 6769

Re: I can't close program if...

As this page tells you, I was right, it is the close call that is waiting until all messages are sent. This can be disabled by turning off the 'linger' option (as the page mentions), and I've even done your homework for you, the 'linger' option defines the amount of time waited until it gives up (i...
by camryfu
Wed Oct 08, 2014 6:24 pm
Forum: Support and Development
Topic: (SOLVED) I can't close program if...
Replies: 11
Views: 6769

Re: I can't close program if...

Thanks for your replies. I know I must make sure that server is up by checking result on sender:connect, but unfortunately it always return "True". That's why there is one variable "r" in my code, I have tried it. The zeromq lua binding I installed is from http://zeromq.org/bindi...
by camryfu
Wed Oct 08, 2014 10:05 am
Forum: Support and Development
Topic: (SOLVED) I can't close program if...
Replies: 11
Views: 6769

(SOLVED) I can't close program if...

my code: local zmq = require "lzmq" local context = zmq.init(1) local sender = context:socket(zmq.PUSH) c=0 function love.load(arg) r = sender:connect("tcp://192.168.1.10:8830") end function love.quit() sender:close() end function love.draw() c = c + 1 str = string.format("t...