nsqio / libnsq Goto Github PK
View Code? Open in Web Editor NEWasync C client library for NSQ
License: MIT License
async C client library for NSQ
License: MIT License
Hi,
trying the test file you wrote. I successfully receive the heartbeat but when I try to publish something on a topic, the test receives data but it's empty and every attempt to publish again on the same topic the test fails to receive any data.
Any suggestion?
Thanks
Antonio
nsqd_connection_stop_timer() causes segfault, the diff below fixes the segfault
I was able to replicate the issue if a nsqd producer is inaccessible.
diff --git a/nsqd_connection.c b/nsqd_connection.c
index d47ed18..b1a04fd 100644
--- a/nsqd_connection.c
+++ b/nsqd_connection.c
@@ -159,7 +159,7 @@ void nsqd_connection_init_timer(struct NSQDConnection *conn,
void nsqd_connection_stop_timer(struct NSQDConnection *conn)
{
if (conn && conn->reconnect_timer) {
- ev_timer_stop(conn->loop, conn->reconnect_timer);
- free(conn->reconnect_timer);
+ //ev_timer_stop(conn->loop, conn->reconnect_timer);
+ //free(conn->reconnect_timer);
}
}
I notice that libnsq just ignore the FrameTypeError
. Should it be OK?
In my case, I cache some messages received and handle them a little later, but if it take more time before sending back finish command than the nsqd option msg_timeout
, the finish command would be failed. I think we should need to know the error response from nsqd.
Hello! Is there any plan to support sending messages to the queue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.