summaryrefslogtreecommitdiff
path: root/main.c
AgeCommit message (Collapse)Author
2024-10-01test add mutexfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-01add gcfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-01fix over-read fdfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-01fix sigsegv when thread ended. Use thread pool insteadfadhil riyanto
use own th_pool struct instead use fd_sockaddr_list Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-30test add thread handler on event queuefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29Add thread pool gcfadhil riyanto
when read() return invalid retcode, we call mark_conn_inactive then, the marked read by start_clean_conn_gc and start realloc memory and close the fd. Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29fix sigsegv: init_get_pthread_arrptrfadhil riyanto
func init_get_pthread_arrptr return pthread_t* where this ptr is dynamic mem. this cause rewrite already mapped memory also add pthread_join Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29add func that mark connection alive or notfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29add pthread when handling private connfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29add mutex locking while delete and add fd_sockaddr_listfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29fix ident and stylefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29add del_fd_sockaddr methodfadhil riyanto
while data being added by increasing fdsocklist->size we decrement that variable and loop all data and jump spesific fd. and re-pack the array into new memory area that created by realloc. purpose: delete old sockaddr_in data by fd Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29fix sockaddr instead sockaddr_in and fix memory corruptionfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-29Add shared array that exchange data between threadsfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-28add epoll while data is available to readfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-28add epollfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-27add function that install fd into epoll instancefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-27add epollfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-27server_reg_sigaction: return 0 on successfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-26add eventloop and sigaction handler when SIGINT arrivefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-26add tcpfd field copy fd from retfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-26create socket, bind, and listenfadhil riyanto
2024-09-26change getopt paramsfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-24add destport and srcport paramsfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-24getopt_long add modefadhil riyanto
2024-09-24add getoptfadhil riyanto
2024-09-24initialfadhil riyanto