Comments (5)
can you try if changing line 367 to 'return 0' fixes the issue ?
like this
// check instance
if (cs->instance_address_len == 0) {
// if fallback nodes are configured, trigger them
if (ucr->fallback) {
cs->instance_failed = 1;
}
return 0;
}
from uwsgi.
Yes it does, since You didn't mentioned what file should I modify I did a little grep to make sure and I've patched fastrouter.c and http.c, corerouter still runs old code
diff --git a/plugins/fastrouter/fastrouter.c b/plugins/fastrouter/fastrouter.c
index c462001..9e4f1e8 100644
--- a/plugins/fastrouter/fastrouter.c
+++ b/plugins/fastrouter/fastrouter.c
@@ -288,7 +288,7 @@ ssize_t fr_recv_uwsgi_vars(struct corerouter_session * cs) {
if (ucr->fallback) {
cs->instance_failed = 1;
}
- return -1;
+ return 0;
}
// stop receiving from the client
diff --git a/plugins/http/http.c b/plugins/http/http.c
index 7869467..78c80ff 100644
--- a/plugins/http/http.c
+++ b/plugins/http/http.c
@@ -1000,7 +1000,7 @@ ssize_t hs_http_manage(struct corerouter_session * cs, ssize_t len) {
if (ucr->fallback) {
cs->instance_failed = 1;
}
- return -1;
+ return 0;
}
// stop receiving from the client
from uwsgi.
yes, it's ok, i will make a check on all of the areas where we need to suddenly close the connection.
from uwsgi.
i have preferred a more drastical approach, resetting errno before each hook invocation. Can you check if all is working as expected ?
from uwsgi.
Yes it does, thanks
from uwsgi.
Related Issues (20)
- Compilation failure due to unused variables HOT 4
- Mechanism to insert a hook pre forking or before a worker process is spawned
- uwsgi_corerouter_loop malloc more than 8G memory HOT 1
- queue / max_queue metrics returns invalid values for UNIX domain sockets HOT 1
- New releases don't include commits from years ago
- How do I silence the startup messages outputed by UWSGI? HOT 1
- Troubleshooting uWSGI Log Rotation Configuration in a Django Container Environment
- Attaching debugger to process
- Undefined Behavior: `strncpy` from `NULL` HOT 3
- uwsgi compilation failed with openssl-1.1 python3.10 HOT 3
- Sigmask cause some commands segmentfault
- -Wformat-signedness causes compilation error with CLANG 16.0.6 HOT 2
- Workers segfaulting (threading related?) HOT 3
- Harakiri process is starting earlier than expected HOT 7
- Workers terminated by SigKill 9
- flag -Wformat-signedness HOT 4
- Getting 404 while using uwsgi with NginX in Django deployment HOT 1
- uwsgi worker dying at high request load with error "taking too much time to die...NO MERCY !!!" HOT 3
- Does uwsgi want to support WSGI+ ?
- Is the graceful harakiri signal sent to the process or thread? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uwsgi.