Giter Site home page Giter Site logo

Comments (1)

scaprile avatar scaprile commented on May 29, 2024

Please do not waste yours and our time opening several issues that are not Mongoose issues
Duplicate of #2548
We will not check your code. You have working examples, work your way through them
https://github.com/cesanta/mongoose/tree/7.12/examples/multi-threaded

[multi-threaded]$ make
./example 
152897a3 3 mongoose.c:4269:mg_listen    1 4 http://localhost:8000
1528a42c 3 mongoose.c:6720:accept_conn  2 5 accepted 127.0.0.1:41632 -> 127.0.0.1:8000
1528a42c 3 mongoose.c:6578:read_conn    2 5 snd 0/0 rcv 0/2048 n=78 err=0
1528a437 3 mongoose.c:6589:write_conn   2 5 snd 66/2048 rcv 0/2048 n=66 err=0
1528a437 3 mongoose.c:6578:read_conn    2 5 snd 0/2048 rcv 0/2048 n=-1 err=0
1528a437 3 mongoose.c:4222:mg_close_con 2 5 closed
1528a437 2 main.c:50:worker_thread      done, cleaning up...
$ curl -v http://localhost:8000/
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET / HTTP/1.1
> Host: localhost:8000
> User-Agent: curl/7.61.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Length: 18         
< 
Send me POST data
* Connection #0 to host localhost left intact
$

If you see this very same issue with the example as is, then feel free to reopen this issue. Please do not open more issues.

Also, consider using the newer way in HEAD:
https://github.com/cesanta/mongoose/tree/master/examples/multi-threaded
https://mongoose.ws/documentation/tutorials/multi-threaded/

Please follow the guidelines in the documentation, examples and tutorials available.

from mongoose.

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.