mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
Handle #1529 - do not mark normal conn termination as an error
This commit is contained in:
parent
20fc8f0279
commit
9dd3b75165
@ -3192,7 +3192,7 @@ static void iolog(struct mg_connection *c, char *buf, long n, bool r) {
|
||||
if (n == 0) {
|
||||
// Do nothing
|
||||
} else if (n < 0) {
|
||||
mg_error(c, "IO error");
|
||||
c->is_closing = 1; // Termination. Don't call mg_error(): #1529
|
||||
} else if (n > 0) {
|
||||
if (c->is_hexdumping) {
|
||||
union usa usa;
|
||||
|
@ -103,7 +103,7 @@ static void iolog(struct mg_connection *c, char *buf, long n, bool r) {
|
||||
if (n == 0) {
|
||||
// Do nothing
|
||||
} else if (n < 0) {
|
||||
mg_error(c, "IO error");
|
||||
c->is_closing = 1; // Termination. Don't call mg_error(): #1529
|
||||
} else if (n > 0) {
|
||||
if (c->is_hexdumping) {
|
||||
union usa usa;
|
||||
|
Loading…
x
Reference in New Issue
Block a user