diff options
Diffstat (limited to 'src/lib/internal.h')
-rw-r--r-- | src/lib/internal.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/lib/internal.h b/src/lib/internal.h index 92b5b511..1e95698e 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h | |||
@@ -429,7 +429,7 @@ struct MHD_Request | |||
429 | * response (which maybe shared between requests) and the IP | 429 | * response (which maybe shared between requests) and the IP |
430 | * address (which persists across individual requests). | 430 | * address (which persists across individual requests). |
431 | */ | 431 | */ |
432 | struct MemoryPool *pool; | 432 | struct MemoryPool *pool; // FIXME: keep with connnection! |
433 | 433 | ||
434 | /** | 434 | /** |
435 | * We allow the main application to associate some pointer with the | 435 | * We allow the main application to associate some pointer with the |
@@ -515,12 +515,6 @@ struct MHD_Request | |||
515 | #endif /* UPGRADE_SUPPORT */ | 515 | #endif /* UPGRADE_SUPPORT */ |
516 | 516 | ||
517 | /** | 517 | /** |
518 | * Thread handle for this connection (if we are using | ||
519 | * one thread per connection). | ||
520 | */ | ||
521 | MHD_thread_handle_ID_ pid; | ||
522 | |||
523 | /** | ||
524 | * Size of @e read_buffer (in bytes). This value indicates | 518 | * Size of @e read_buffer (in bytes). This value indicates |
525 | * how many bytes we're willing to read into the buffer; | 519 | * how many bytes we're willing to read into the buffer; |
526 | * the real buffer is one byte longer to allow for | 520 | * the real buffer is one byte longer to allow for |
@@ -760,6 +754,12 @@ struct MHD_Connection | |||
760 | struct MHD_Request request; | 754 | struct MHD_Request request; |
761 | 755 | ||
762 | /** | 756 | /** |
757 | * Thread handle for this connection (if we are using | ||
758 | * one thread per connection). | ||
759 | */ | ||
760 | MHD_thread_handle_ID_ pid; | ||
761 | |||
762 | /** | ||
763 | * Foreign address (of length @e addr_len). | 763 | * Foreign address (of length @e addr_len). |
764 | */ | 764 | */ |
765 | struct sockaddr_storage addr; | 765 | struct sockaddr_storage addr; |
@@ -1218,6 +1218,11 @@ struct MHD_Daemon | |||
1218 | */ | 1218 | */ |
1219 | struct MHD_Connection *cleanup_tail; | 1219 | struct MHD_Connection *cleanup_tail; |
1220 | 1220 | ||
1221 | /** | ||
1222 | * Table storing number of connections per IP | ||
1223 | */ | ||
1224 | void *per_ip_connection_count; | ||
1225 | |||
1221 | #ifdef EPOLL_SUPPORT | 1226 | #ifdef EPOLL_SUPPORT |
1222 | /** | 1227 | /** |
1223 | * Head of EDLL of connections ready for processing (in epoll mode). | 1228 | * Head of EDLL of connections ready for processing (in epoll mode). |