Comments (6)
interesting, I'll try to reproduce, does it also fails on client side or is it just this message?
from cutelyst.
Ok, managed to reproduce, and as a workaround you can use TCP sockets which worked fine. Not sure yet why it happens, but once that message is out it stops working 😭
from cutelyst.
Yes. Same for me. After that message, nothing happens any more. Apache than returns a 502 error. Currently I am using the FastCGI socket with multiple processes, that works fine. :)
from cutelyst.
Ok, this seems to be a complex issue, I dunno why in earlier versions it worked, but be it threads or process it seems that when a thread/processes gets the connection and the other one get's an invalid value which end up on that message, which I'm not sure yet how makes QLocalServer delete it's socket file. Odd that I recall this working when I first added the UNIX socket feature... ATM I'd recommend using TCP ...
from cutelyst.
Hm, when I try it with multiple processes I get no error, but after a while only one process of six seems to be active and reacts to requests. (tested with wieghttp and siege)
from cutelyst.
Ok, it's a Qt bug, and indeed it can happen with process too.
Basically if accept fails due the other thread/process accepting it then it will close the server and delete the socket file, then that message is emitted because the FD QSocketNotifier was watching is now invalid, since I run Cutelyst on AWS with a single core CPU and using a single process this issue didn't hit me.
I can implement the experimental-thread-balance for local sockets which will fix the issue for threaded apps...
I'll be opening a bug report and eventually I'll fix it myself since my QtNetwork bugs usually stay there for a while.
from cutelyst.
Related Issues (20)
- Asynchronous REST API using GUI mode HOT 2
- Epoll event loop on Qt 6.4+
- Macos build error in EventDispatcherEPoll
- Question about Response::redirect HOT 1
- CRASH: Cutelyst is not responsive after wrong request
- Question about default change server/plugins default config HOT 3
- How prevent from session expire time change on some request? HOT 1
- RoleACL problem HOT 3
- How to access Request inside custom tag processing? HOT 2
- Copy-paste issue in CredentialPasswordPrivate::checkPassword HOT 2
- Cutelyst "Authentication plugin not registered" error message when running multithreaded in Kubernetes HOT 6
- Qt 6.5 compatibility and broken QMetaMethod::invoke() HOT 3
- Cutelyst not working with Qt 6.5 HOT 3
- how use qt with mimalloc HOT 1
- SONUM for Cutelyst4
- Problem with call Root::Auto HOT 11
- Qt 6.5.3 problem [was 'Problem with call Root::Auto'] HOT 6
- Multiple configuration files HOT 7
- server config section naming HOT 5
- Tutorial - Authentication - Auto appears to be never called - Qt 6.2.4 HOT 1
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 cutelyst.