Displaying 6 results from an estimated 6 matches for "max_msgs".
Did you mean:
max_msg
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
Hello,
Guus Sliepen, on Wed 02 Dec 2015 13:53:37 +0100, wrote:
> That's great! It would be good though to split
> handle_incoming_vpn_data() into a function that does the actual
> recvfrom/mmsg() and one that processes each individual packet, to reduce
> the level of indentation and make the functions a bit more readable.
> Then I'll merge it :)
Here it is.
Samuel
2015 Dec 10
3
[PATCH] Receive multiple packets at a time
10.12.2015 09:20, Michael Tokarev wrote:
> 10.12.2015 03:35, Samuel Thibault wrote:
> []
>
> I suggest reducing ifdeffery in handle_incoming_vpn_data(), especially
> the error checking code.
>
> The function isn't that large now, it might be much better to have
> two different implementations. Like this (untested, patch attached):
>
> void
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
Hello,
Linux has a recvmmsg() system call which allows to achieve several
recvfrom() at a time. The patch below makes tinc use it (patch against
1.1-pre11). Basically the patch turns the handle_incoming_vpn_data
variables into arrays (of size 1 when recvmmsg is not available, and
thus compiled the same as before), and makes the code index into the
arrays. You may want to use interdiff -w
2015 Dec 10
0
[PATCH] Receive multiple packets at a time
10.12.2015 03:35, Samuel Thibault wrote:
[]
I suggest reducing ifdeffery in handle_incoming_vpn_data(), especially
the error checking code.
The function isn't that large now, it might be much better to have
two different implementations. Like this (untested, patch attached):
void handle_incoming_vpn_data(int sock) {
#ifdef HAVE_RECVMMSG
#define MAX_MSG 256
vpn_packet_t
2015 Dec 02
0
[PATCH] Receive multiple packets at a time
Oh, goodie!
I'd made a start on the send direction here:
https://github.com/dtaht/tinc/commits/master
Perhaps that will help.
I would not just pull that as it was just some late night hacking...
and it turns out the posix time calls I upgraded to to get better than
second resolution are not supported on OSX.
My ultimate intent was to move to not bottlenecking or dropping
packets on the
2011 Jun 02
2
Custom sql query for keeping quota with dict-sql
Hello!
I'd like to setup quota for for virtualusers, i'm using both maildir++
and mdbox as storage, and i'm using postgresql to keep users.
I'm keeping all users data in one table:
[...]
login text NOT NULL,
domain text,
password text,
quota_mb integer NOT NULL DEFAULT 0
[... other columns ...]
i'd like to keep present quota in such two columns:
quota_dict_bytes integer NOT