Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-12-24 | tsocket: only copy the specific part of sockaddr* | Stefan Metzmacher | 1 | -0/+5 | |
This makes sure we fill the unspefic bytes with 0 and have zero termination for sockaddr_un. metze | |||||
2009-12-24 | tsocket: allow AF_UNIX sockaddrs smaller than sizeof(sockaddr_un) | Stefan Metzmacher | 1 | -4/+5 | |
This is needed as getpeername() truncates the length to 2 if the peer socket has no name. metze | |||||
2009-12-15 | tsocket: Fixed tsocket_guide.txt asciidoc syntax. | Andreas Schneider | 1 | -148/+161 | |
2009-12-15 | tsocket: Fixed documentation for tsocket_address_bsd_sockaddr(). | Andreas Schneider | 1 | -6/+5 | |
2009-12-15 | tsocket: Fixed typo in LGPL header. | Andreas Schneider | 5 | -5/+5 | |
2009-12-15 | tsocket: add tsocket_address_bsd_sockaddr() and ↵ | Stefan Metzmacher | 3 | -5/+87 | |
tsocket_address_bsd_from_sockaddr() metze | |||||
2009-11-03 | tsocket: rewrite tsocket_guide.txt to reflect the current APIs | Stefan Metzmacher | 1 | -467/+413 | |
metze | |||||
2009-11-03 | tsocket_bsd: return -1 and set errno to ENAMETOOLONG if the unix path is too ↵ | Stefan Metzmacher | 1 | -1/+6 | |
long metze | |||||
2009-11-03 | tsocket: remove prototype of non-existing tsocket_address_inet_set_broadcast() | Stefan Metzmacher | 1 | -2/+0 | |
metze | |||||
2009-07-16 | tsocket: rename sa_len => sa_socklen, because sa_len is a macro on some ↵ | Stefan Metzmacher | 1 | -21/+21 | |
platforms metze | |||||
2009-06-29 | tsocket/bsd: also ask for TEVENT_FD_READ when we want to write into a stream ↵ | Stefan Metzmacher | 1 | -2/+9 | |
socket Otherwise we would not notice a broken connection. metze | |||||
2009-06-29 | tsocket/bsd: more correctly check if the cached tevent_fd is still valid | Stefan Metzmacher | 1 | -4/+12 | |
I some cases the pointer value of tevent_context is the same again, if we do something like: ev1 = tevent_context_init(); ... fde = tevent_add_fd(ev1, fd, TEVENT_FD_READ...); ... talloc_free(ev1); ... ev2 = tevent_context_init(); if (ev1 == ev2) { /* this can happen! */ } if (tevent_fd_get_flags(fde) == 0) { /* this is always true */ } But the "talloc_free(ev1)" will set fde->event_ctx to NULL and tevent_fd_get_flags() will always return 0. metze | |||||
2009-06-27 | Properly free a downlevel readv request. Metze, please check | Volker Lendecke | 1 | -0/+1 | |
2009-06-09 | It seems that IRIX doesn't have IOV_MAX | Andrew Tridgell | 1 | -0/+4 | |
2009-05-22 | tsocket: allow empty vectors at the end for tstream_writev()/readv() | Stefan Metzmacher | 1 | -0/+26 | |
metze | |||||
2009-05-19 | Set errno=ENOMEM if tevent_add_fd fails | Volker Lendecke | 1 | -0/+4 | |
tevent_add_fd does not properly set that. At least in epoll and select this is the only error condition. Metze, please check! | |||||
2009-05-19 | Simplify the logic of tsocket_bsd_pending | Volker Lendecke | 1 | -24/+26 | |
Remove two indentation levels by returning early on error. Metze, please check! | |||||
2009-05-01 | Attempt to the build on NetBSD5 and a few others | Volker Lendecke | 1 | -0/+3 | |
2009-05-01 | tsocket: add tstream_readv_pdu_queue_send/recv() | Stefan Metzmacher | 2 | -0/+132 | |
metze | |||||
2009-05-01 | tsocket: add tstream_writev_queue_send/recv() | Stefan Metzmacher | 2 | -0/+132 | |
metze | |||||
2009-05-01 | tsocket: add tstream_readv_pdu_send/recv() | Stefan Metzmacher | 2 | -1/+178 | |
metze | |||||
2009-05-01 | tsocket: add tstream implementation for bsd sockets (inet and unix) | Stefan Metzmacher | 2 | -0/+943 | |
metze | |||||
2009-05-01 | tsocket: add tstream_context infrastructure similar to tdgram_context | Stefan Metzmacher | 3 | -0/+445 | |
metze | |||||
2009-05-01 | tsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket() | Stefan Metzmacher | 2 | -12/+12 | |
metze | |||||
2009-05-01 | tsocket: move tsocket_simple_int_recv() to tsocket.c | Stefan Metzmacher | 2 | -31/+28 | |
metze | |||||
2009-05-01 | tsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.c | Stefan Metzmacher | 2 | -130/+131 | |
metze | |||||
2009-05-01 | tsocket: tdgram move input checks to the common code as there're needed for ↵ | Stefan Metzmacher | 2 | -24/+69 | |
all backends We need to make sure that we free the sendto and recvfrom requests before the tdgram_context metze | |||||
2009-05-01 | tsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un) | Stefan Metzmacher | 1 | -2/+22 | |
sizeof(struct sockaddr_storage) generates EINVAL. metze | |||||
2009-05-01 | tsocket: return EINVAL when tdgram_sendto_send() is used with len == 0 | Stefan Metzmacher | 1 | -0/+5 | |
metze | |||||
2009-05-01 | tsocket: fix dependecies | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2009-05-01 | tsocket: remove tsocket_context related stuff | Stefan Metzmacher | 9 | -1807/+17 | |
It will be replaced by tdgram_context and tstream_context. metze | |||||
2009-04-16 | tsocket: fix the build without ipv6 support | Stefan Metzmacher | 1 | -0/+2 | |
metze | |||||
2009-04-06 | tsocket: reduce size of dummy variable | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2009-04-06 | tsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv() | Stefan Metzmacher | 1 | -8/+2 | |
metze | |||||
2009-04-02 | tsocket: remove DGRAM support from tsocket_context | Stefan Metzmacher | 7 | -564/+0 | |
metze | |||||
2009-04-02 | tsocket: optimize tdgram_bsd a lot | Stefan Metzmacher | 1 | -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-02 | tsocket: add tdgram_sendto_queue_send/recv() | Stefan Metzmacher | 2 | -0/+143 | |
metze | |||||
2009-04-02 | tsocket: split out a smaller tdgram_context abstraction | Stefan Metzmacher | 4 | -0/+1192 | |
The idea is to have a tdgram and a tstream abstraction which only provide tevent_req based io functions. metze | |||||
2009-03-31 | tsocket: try to fix the build on solaris FIONREAD was missing | Stefan Metzmacher | 1 | -0/+1 | |
metze | |||||
2009-03-28 | tsocket: more s/sun/un to make the build on solaris happy | Stefan Metzmacher | 1 | -6/+6 | |
metze | |||||
2009-03-27 | tsocket: try to fix the build on solaris systems | Stefan Metzmacher | 1 | -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-19 | lib/tsocket: add tsocket_guide.txt section with specific details about bsd ↵ | Stefan Metzmacher | 1 | -0/+79 | |
style sockets metze | |||||
2009-03-19 | lib/tsocket: add a fast path to tsocket_writev_send/recv() | Stefan Metzmacher | 1 | -0/+10 | |
This is similar to the tsocket_sendto_send/recv() fast path. metze | |||||
2009-03-19 | lib/tsocket: add a fast path to tsocket_sendto_send/recv() | Stefan Metzmacher | 1 | -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-19 | lib/tsocket: add tsocket_guide.txt section about the async _send/recv() ↵ | Stefan Metzmacher | 1 | -0/+142 | |
helper functions metze | |||||
2009-03-19 | lib/tsocket: add tsocket_readv_send/recv() | Stefan Metzmacher | 3 | -1/+235 | |
metze | |||||
2009-03-19 | lib/tsocket: add tsocket_writev_queue_send/recv() | Stefan Metzmacher | 2 | -0/+126 | |
metze | |||||
2009-03-19 | lib/tsocket: add tsocket_writev_send/recv() | Stefan Metzmacher | 3 | -1/+195 | |
metze | |||||
2009-03-19 | lib/tsocket: add tsocket_connect_send/recv() | Stefan Metzmacher | 3 | -1/+129 | |
metze | |||||
2009-03-19 | lib/tsocket: add tsocket_sendto_queue_send/recv() | Stefan Metzmacher | 2 | -0/+133 | |
metze |