Skip to content

Generic socket error #1867

Discussion options

You must be logged in to vote

If you are sending on a TCP connection, Mongoose will try resize the TCP buffer to hold your data and then send it to the socket interface in your OS.
The http-server example as is serves 4MB in RHEL. I even compiled with MG_ENABLE_EPOLL (which seems to be what you are using) and it worked OK. There is no limit per se.
Please enable debug or verbose messages and track why your OS is rejecting that transfer.
mg_log_set( log level )

mongoose/mongoose.h

Lines 810 to 813 in d958ec2

#define MG_ERROR(args) MG_LOG(MG_LL_ERROR, args)
#define MG_INFO(args) MG_LOG(MG_LL_INFO, args)
#define MG_DEBUG(args) MG_LOG(MG_LL_DEBUG, args)
#define MG_VERBOSE(args) MG_LOG(MG_LL_VERB…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants