Mercurial
comparison seobeo/os/s_linux_edge.c @ 16:fb2cff495a60
[Seobeo] Fixed the problem with edge server.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 03 Oct 2025 09:55:51 -0700 |
| parents | 114cad94008f |
| children | d97ec3ded2ae |
comparison
equal
deleted
inserted
replaced
| 15:2b9e75756825 | 16:fb2cff495a60 |
|---|---|
| 21 .data.ptr = cli | 21 .data.ptr = cli |
| 22 }; | 22 }; |
| 23 epoll_ctl(args->evfd, EPOLL_CTL_ADD, | 23 epoll_ctl(args->evfd, EPOLL_CTL_ADD, |
| 24 cli->socket, &ev); | 24 cli->socket, &ev); |
| 25 } else { | 25 } else { |
| 26 // client ready | 26 Seobeo_Web_HandleClientRequest(h, args->cache); // This frees |
| 27 Seobeo_Web_HandleClientRequest(h, args->cache); | |
| 28 epoll_ctl(args->evfd, EPOLL_CTL_DEL, | 27 epoll_ctl(args->evfd, EPOLL_CTL_DEL, |
| 29 h->socket, NULL); | 28 h->socket, NULL); |
| 30 Seobeo_Handle_Destroy(h); | |
| 31 } | 29 } |
| 32 } | 30 } |
| 33 } | 31 } |
| 34 return NULL; | 32 return NULL; |
| 35 } | 33 } |