summaryrefslogtreecommitdiff
path: root/lib/tsocket
AgeCommit message (Collapse)AuthorFilesLines
2009-04-02tsocket: remove DGRAM support from tsocket_contextStefan Metzmacher7-564/+0
metze
2009-04-02tsocket: optimize tdgram_bsd a lotStefan Metzmacher1-27/+54
The desire is to do as less syscalls during the tdgram_sendto_send/recv() and tdgram_recvfrom_send/recv() operations. 1. we first try the sendto()/recvfrom() syscall and only use a fd event if we got EAGAIN. 2. we cache the fd event and only change it's flags if really needed. For the highload case we do almost no epoll_ctl() and epoll_wait()/select() syscalls anymore. This speeds up the LDAP-BENCH-CLDAP test by more than 20%. (With a modified version of this test which let the server skip any ldb calls and just return success I'm getting about 8000 requests per second, while I'm getting just about 6000 requests per second without optimization) metze
2009-04-02tsocket: add tdgram_sendto_queue_send/recv()Stefan Metzmacher2-0/+143
metze
2009-04-02tsocket: split out a smaller tdgram_context abstractionStefan Metzmacher4-0/+1192
The idea is to have a tdgram and a tstream abstraction which only provide tevent_req based io functions. metze
2009-03-31tsocket: try to fix the build on solaris FIONREAD was missingStefan Metzmacher1-0/+1
metze
2009-03-28tsocket: more s/sun/un to make the build on solaris happyStefan Metzmacher1-6/+6
metze
2009-03-27tsocket: try to fix the build on solaris systemsStefan Metzmacher1-18/+18
It seems that 'sun' is somewhere defined and we can use it as name for variables or struct/union members. metze
2009-03-19lib/tsocket: add tsocket_guide.txt section with specific details about bsd ↵Stefan Metzmacher1-0/+79
style sockets metze
2009-03-19lib/tsocket: add a fast path to tsocket_writev_send/recv()Stefan Metzmacher1-0/+10
This is similar to the tsocket_sendto_send/recv() fast path. metze
2009-03-19lib/tsocket: add a fast path to tsocket_sendto_send/recv()Stefan Metzmacher1-0/+10
By first trying to send data without waiting for the socket to become writeable we gain about 10-20% performance in the LDAP-BENCH-CLDAP test. metze
2009-03-19lib/tsocket: add tsocket_guide.txt section about the async _send/recv() ↵Stefan Metzmacher1-0/+142
helper functions metze
2009-03-19lib/tsocket: add tsocket_readv_send/recv()Stefan Metzmacher3-1/+235
metze
2009-03-19lib/tsocket: add tsocket_writev_queue_send/recv()Stefan Metzmacher2-0/+126
metze
2009-03-19lib/tsocket: add tsocket_writev_send/recv()Stefan Metzmacher3-1/+195
metze
2009-03-19lib/tsocket: add tsocket_connect_send/recv()Stefan Metzmacher3-1/+129
metze
2009-03-19lib/tsocket: add tsocket_sendto_queue_send/recv()Stefan Metzmacher2-0/+133
metze
2009-03-19lib/tsocket: add tsocket_sendto_send/recv()Stefan Metzmacher3-1/+145
metze
2009-03-19lib/tsocket: add tsocket_recvfrom_send/recv()Stefan Metzmacher3-2/+178
metze
2009-03-19lib/tsocket: add an implementation for bsd style sockets.Stefan Metzmacher3-1/+1169
metze
2009-03-19lib/tsocket: add a tsocket_guide.txt with a description of the designStefan Metzmacher1-0/+282
metze
2009-03-19lib/tsocket: add some useful helper functionsStefan Metzmacher3-1/+183
metze
2009-03-19lib/tsocket: add generic socket abstraction layerStefan Metzmacher4-0/+518
This will replace source4/lib/socket/. metze