Comments (2)
I see. Well, on UNIX we can do ungraceful shutdown. The reason close_socket_gracefully() exists is to handle Windows, cause otherwise Windows won't deliver all data left in a socket buffer.
Try to change close_socket_gracefully() to closesocket(), and if it helps, I'll wrap close_socket_gracefully() in #ifdef _WIN32.
from mongoose.
Submitted
cdb6588
Thanks!
from mongoose.
Related Issues (20)
- 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
- mg_queue_printf not setting correct queue size - what am I doing wrong? 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
- MG_EV_CLOSE is fired before MG_EV_HTTP_MSG HOT 16
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.