Mercurial
comparison seobeo/s_web.c @ 62:ea9ef388ab97
[Seobeo] Fixed issues with epoll or kqeue in different threads. Initizlied the event looop inside of the thread itself.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 23 Dec 2025 11:48:11 -0800 |
| parents | 84672efec192 |
| children | ecb6ee6a22c3 |
comparison
equal
deleted
inserted
replaced
| 61:9df5587cf23b | 62:ea9ef388ab97 |
|---|---|
| 250 } | 250 } |
| 251 goto clean_up; | 251 goto clean_up; |
| 252 | 252 |
| 253 clean_up: | 253 clean_up: |
| 254 printf("clean up\n\n"); | 254 printf("clean up\n\n"); |
| 255 if (p_cli_handle) | |
| 256 Seobeo_Handle_Destroy(p_cli_handle); | |
| 257 if (p_response_arena) | |
| 258 Dowa_Arena_Destroy(p_response_arena); | |
| 255 return; | 259 return; |
| 256 // if (p_cli_handle) | |
| 257 // Seobeo_Handle_Destroy(p_cli_handle); | |
| 258 // if (p_response_arena) | |
| 259 // Dowa_Arena_Destroy(p_response_arena); | |
| 260 } | 260 } |
| 261 | 261 |
| 262 | 262 |
| 263 int Seobeo_Web_Header_Parse(Seobeo_PHandle p_handle, Dowa_PHashMap map) | 263 int Seobeo_Web_Header_Parse(Seobeo_PHandle p_handle, Dowa_PHashMap map) |
| 264 { | 264 { |
| 501 } | 501 } |
| 502 | 502 |
| 503 if (mode == SEOBEO_MODE_EDGE) | 503 if (mode == SEOBEO_MODE_EDGE) |
| 504 { | 504 { |
| 505 printf("EDGE MODE\n"); | 505 printf("EDGE MODE\n"); |
| 506 Seobeo_Web_Edge_2(p_server_handle, p_html_cache); | 506 // Seobeo_Web_Edge_2(p_server_handle, p_html_cache); |
| 507 // Seobeo_Web_Edge(p_server_handle, thread_count, p_html_cache); | 507 Seobeo_Web_Edge(p_server_handle, thread_count, p_html_cache); |
| 508 } | 508 } |
| 509 | 509 |
| 510 return -1; | 510 return -1; |
| 511 } | 511 } |
| 512 | 512 |