Comments (1)
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)
- 404 Page Problem HOT 3
- HTTPS Problem on Windows HOT 1
- "mg_json_unescape" does not unescape valid json HOT 5
- Open file with fat file system give invalid state usage HOT 8
- ATSAME54 GMAC Driver Receiver Packet Buffer Memory insufficient by default HOT 1
- Please follow the guidelines in the [documentation](https://mongoose.ws/documentation), [examples](https://github.com/cesanta/mongoose/tree/master/examples) and [tutorials](https://mongoose.ws/tutorials/) available. HOT 1
- Update CodeQL analysis workflow HOT 2
- How to use mongoose in Arduino Opta Lite HOT 3
- How to use mongoose in Arduino Opta Lite HOT 1
- __sync_synchronize not defined in older GCC versions HOT 2
- duplicate messages retrieved by mg_queue_next()? HOT 31
- `mg_http_serve_file()` fails to serve Android's `/proc` file's contents when file size is 0 HOT 3
- openssl HOT 2
- mg_wakeup() HOT 54
- Unable to make a wss connection using 7.12 using qt5.15.16 HOT 5
- The meaning of "n <= 0" judgment in iolog function HOT 3
- mg_queue_prinf() sets wrong Content-Length / queue size. HOT 1
- Chunked message body incorrectly terminated on `\r\n\r\n` instead of `0\r\n\r\n`
- About running on a riscv-linux 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 mongoose.