| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous code assumed the OS would happily accept sizeof(struct
sockaddr_storage). It seems some versions of Solaris do not like
this.
Andrew Bartlett
(cherry picked from commit f1aa4c34bf0bd7d42627024af333963b741babea)
Fix for bug #7354.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
|
|
|
|
| |
This makes sure we fill the unspefic bytes with 0
and have zero termination for sockaddr_un.
metze
(cherry picked from commit 17c804a67593cdb4d8646b5be6b50fddf56b3e27)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
|
|
|
|
| |
This is needed as getpeername() truncates the length to 2 if the
peer socket has no name.
metze
(cherry picked from commit 4784c8c3bea98592486ca973d57c99671eb68cb2)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
|
| |
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 1983256c70cf07b8c8afddd024ee5fd2522ee83c)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
|
| |
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
(cherry picked from commit 319d3bf9d93ddfc1afbfb0c759f6d91906f915c1)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
| |
picked from commit 88099bcc93fabebe3d4548f8a5aa26b585886a1c)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
| |
picked from commit 9184f524f0e5fe828b723200182969e0e3e8685d)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
|
| |
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 574f77f89e78997844dd6e993f9bf53476555026)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
|
| |
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 04f3f27f7e7a4e7ae3584fe9b7ed7c5f5d556ec7)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
| |
metze
(cherry picked from commit c42d9c4ec410e205091784cd97cbceb5572609d8)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Which was:
tsocket/bsd: fix bug #7115 FreeBSD includes the UDP header in FIONREAD
Metze, this has to have been wrong - you are throwing away the talloc_realloc
pointer returned. Also no error checking. Please review.
Thank goodness for gcc warnings :-).
Jeremy.
(cherry picked from commit 936828de71023d90aaec6c1dba84052246bbad11)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
| |
metze
(cherry picked from commit d07cd37b993d3c9beded20323174633b806196b5)
|
|
|
|
|
|
|
|
|
| |
Some system already have this as default. It's easier
to behave the same way on all systems and handle ipv6
and ipv4 sockets separate.
metze
(cherry picked from commit 1ffcb991a900b78c9175f6b093839fe96b1bd7d9)
|
|
|
|
|
|
|
| |
address if the local address is any
metze
(cherry picked from commit 8a0949dfc8d2ecf577dfc5ef38496421101b734e)
|
|
|
|
|
|
|
|
|
|
| |
tstream_bsd_connect_send()
This is needed because, we can't use sizeof(sockaddr_storage) for AF_UNIX
sockets. Also some platforms require exact values for AF_INET and AF_INET6.
metze
(cherry picked from commit 6637b2f4b06fcee1e8e1b1782dd96e3273f8caac)
|
|
|
|
|
|
|
| |
We want the explicit bind() when we don't use the any address.
metze
(cherry picked from commit 135543b4c300e2fc31ee4165ce630644e1aef455)
|
|
|
|
|
|
| |
(cherry picked from commit a5bdab8b32768282270315f880f980d99ebb9a2e)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
| |
(cherry picked from commit e33ae22b87597f31caefd5466bb8e8f240405972)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
| |
(cherry picked from commit ab04dd3be743806bf3c9cf9db4b5326ce0476bf5)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
|
|
|
|
| |
tsocket_address_bsd_from_sockaddr()
metze
(cherry picked from commit edbf2caa6f8273227229cd8f1b293e95c6a6122d)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
|
|
|
| |
metze
(cherry picked from commit 97a32035bec03b76b67cb7088a7be1b7b3b9ac48)
|
|
|
|
|
|
|
| |
long
metze
(cherry picked from commit eb39f6694055267302580bbf6afa988c82c55fed)
|
|
|
|
|
| |
metze
(cherry picked from commit 9b5d1e9e355d3d04f03744e025c6685ca8ad12cd)
|
|
|
|
|
|
| |
platforms
metze
|
|
|
|
|
|
|
|
| |
socket
Otherwise we would not notice a broken connection.
metze
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
metze
|
|
|
|
|
|
|
| |
tevent_add_fd does not properly set that. At least in epoll and select this is
the only error condition.
Metze, please check!
|
|
|
|
|
|
| |
Remove two indentation levels by returning early on error.
Metze, please check!
|
| |
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
|
|
|
|
|
| |
all backends
We need to make sure that we free the sendto and recvfrom requests before
the tdgram_context
metze
|
|
|
|
|
|
| |
sizeof(struct sockaddr_storage) generates EINVAL.
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
|
|
| |
It will be replaced by tdgram_context and tstream_context.
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|