GithubHelp home page GithubHelp logo

Comments (6)

dantti avatar dantti commented on May 28, 2024

interesting, I'll try to reproduce, does it also fails on client side or is it just this message?

from cutelyst.

dantti avatar dantti commented on May 28, 2024

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.

buschmann23 avatar buschmann23 commented on May 28, 2024

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.

dantti avatar dantti commented on May 28, 2024

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.

buschmann23 avatar buschmann23 commented on May 28, 2024

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.

dantti avatar dantti commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.