summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-08fix fdleakdevfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-08fix cpu burst due unjoined threadfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-08add epoll to the thread instead using busy waitfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-07create 2 way socket data transfer using pthreadfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-07add \r\n\r\n detectionfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-06add signal SIG_PIPE ignorefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-06fix fdleakfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-06test charptrfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-06fix writefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-06test aligned memoryfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-06test sendfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-05add data exchangefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-05add create connection to target serverfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-05fix network to host orderfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-05add bug: port number incorrectfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-04test merge bitsfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-04test increate fd watchfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-04fix req duplicatefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-03fix bug sigsegvfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-02add thread functionfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-02fix sockaddr gatefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-01test add mutexfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-10-01copy filesfadhil 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-01add licensefadhil 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-28test mmap()fadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-28add epollfadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>
2024-09-28test fork()fadhil 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-27test forkfadhil 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-26change ident width and add another ignore filefadhil riyanto
Signed-off-by: fadhil riyanto <me@fadev.org>