mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-28 13:49:01 +08:00
more comments in big_upload.c
This commit is contained in:
parent
e4c71425c9
commit
708af6d9c5
@ -29,7 +29,7 @@ static int handle_request(struct mg_connection *conn) {
|
||||
conn->connection_param = p;
|
||||
mg_send_header(conn, "Content-Type", "text/html");
|
||||
}
|
||||
return MG_MORE;
|
||||
return MG_MORE; // Tell mongoose to keep this connection open
|
||||
} else {
|
||||
mg_printf_data(conn, "%s",
|
||||
"<html><body>Upload example."
|
||||
@ -38,7 +38,7 @@ static int handle_request(struct mg_connection *conn) {
|
||||
"<input type=\"file\" name=\"file\" /> <br/>"
|
||||
"<input type=\"submit\" value=\"Upload\" />"
|
||||
"</form></body></html>");
|
||||
return MG_TRUE;
|
||||
return MG_TRUE; // Tell mongoose to close this connection
|
||||
}
|
||||
}
|
||||
|
||||
@ -59,10 +59,10 @@ static int handle_poll(struct mg_connection *conn) {
|
||||
fclose(p->fp);
|
||||
free(p);
|
||||
conn->connection_param = NULL;
|
||||
return MG_TRUE;
|
||||
return MG_TRUE; // Tell mongoose to close this connection
|
||||
}
|
||||
}
|
||||
return MG_FALSE;
|
||||
return MG_FALSE; // Tell mongoose to keep this connection open
|
||||
}
|
||||
|
||||
static int ev_handler(struct mg_connection *conn, enum mg_event ev) {
|
||||
|
Loading…
Reference in New Issue
Block a user