mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Increase conn label size 32 -> 50
This commit is contained in:
1 parent
0a9303bb07
commit
ae5f6c0920
3 files changed
+4
-2
No files matched your search
@@ -579,6 +579,8 @@ int mg_http_parse(const char *s, size_t len, struct mg_http_message *hm) {
|
|||||||
s = skip(s, end, " ", &hm->method);
|
s = skip(s, end, " ", &hm->method);
|
||||||
s = skip(s, end, " ", &hm->uri);
|
s = skip(s, end, " ", &hm->uri);
|
||||||
s = skip(s, end, "\r\n", &hm->proto);
|
s = skip(s, end, "\r\n", &hm->proto);
|
||||||
|
|
||||||
|
// Sanity check
|
||||||
if (hm->method.len == 0 || hm->uri.len == 0 || hm->proto.len == 0) return -1;
|
if (hm->method.len == 0 || hm->uri.len == 0 || hm->proto.len == 0) return -1;
|
||||||
|
|
||||||
// If URI contains '?' character, setup query string
|
// If URI contains '?' character, setup query string
|
||||||
|
|||||||
+1
-1
@@ -643,7 +643,7 @@ struct mg_connection {
|
|||||||
void *fn_data; // User-speficied function parameter
|
void *fn_data; // User-speficied function parameter
|
||||||
mg_event_handler_t pfn; // Protocol-specific handler function
|
mg_event_handler_t pfn; // Protocol-specific handler function
|
||||||
void *pfn_data; // Protocol-specific function parameter
|
void *pfn_data; // Protocol-specific function parameter
|
||||||
char label[32]; // Arbitrary label
|
char label[50]; // Arbitrary label
|
||||||
void *tls; // TLS specific data
|
void *tls; // TLS specific data
|
||||||
unsigned is_listening : 1; // Listening connection
|
unsigned is_listening : 1; // Listening connection
|
||||||
unsigned is_client : 1; // Outbound (client) connection
|
unsigned is_client : 1; // Outbound (client) connection
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ struct mg_connection {
|
|||||||
void *fn_data; // User-speficied function parameter
|
void *fn_data; // User-speficied function parameter
|
||||||
mg_event_handler_t pfn; // Protocol-specific handler function
|
mg_event_handler_t pfn; // Protocol-specific handler function
|
||||||
void *pfn_data; // Protocol-specific function parameter
|
void *pfn_data; // Protocol-specific function parameter
|
||||||
char label[32]; // Arbitrary label
|
char label[50]; // Arbitrary label
|
||||||
void *tls; // TLS specific data
|
void *tls; // TLS specific data
|
||||||
unsigned is_listening : 1; // Listening connection
|
unsigned is_listening : 1; // Listening connection
|
||||||
unsigned is_client : 1; // Outbound (client) connection
|
unsigned is_client : 1; // Outbound (client) connection
|
||||||
|
|||||||
Reference in new issue
Block a user