]>
git.sesse.net Git - jam/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
sgunderson@bigfoot.com [Tue, 13 Feb 2007 22:59:34 +0000 (23:59 +0100)]
EINTR, not EAGAIN.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 22:50:30 +0000 (23:50 +0100)]
Add the first round of EAGAIN tests.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 22:26:45 +0000 (23:26 +0100)]
Add support for adjusting the number of receiver threads.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 22:19:08 +0000 (23:19 +0100)]
Fix a warning.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 22:17:53 +0000 (23:17 +0100)]
Minor epoll fixes.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 22:13:52 +0000 (23:13 +0100)]
Make each receiver handle multiple sockets.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 21:31:46 +0000 (22:31 +0100)]
Parametrize out the update frequency.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 20:54:31 +0000 (21:54 +0100)]
Stop malloc()-ing for each new connection.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 20:29:33 +0000 (21:29 +0100)]
It looks like send() can give us EAGAIN even if epoll() said the socket
was ready (after all, we don't check the events bits). Just ignore that.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 20:05:28 +0000 (21:05 +0100)]
epoll_data is a union, not a struct. Doh, no wonder the .fd element was
corrupted :-)
sgunderson@bigfoot.com [Tue, 13 Feb 2007 20:00:21 +0000 (21:00 +0100)]
Actually take the -N short option.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 20:00:08 +0000 (21:00 +0100)]
Fix a long vs. long long issue.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 19:52:29 +0000 (20:52 +0100)]
Proper error handling for epoll, and some cleanup.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 19:45:27 +0000 (20:45 +0100)]
Handle EAGAIN in connect(). Duh.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 19:41:51 +0000 (20:41 +0100)]
Actually abort if we have no list.
sgunderson@bigfoot.com [Tue, 13 Feb 2007 19:41:36 +0000 (20:41 +0100)]
Start working on multiple senders per thread, using epoll.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 23:40:15 +0000 (00:40 +0100)]
Add a little delay at the start.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 23:18:20 +0000 (00:18 +0100)]
Make a per-second traffic counter.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 22:47:43 +0000 (23:47 +0100)]
Print out the statistics, and fix a stats bug.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 22:37:39 +0000 (23:37 +0100)]
Remove some debugging stuff.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 22:36:50 +0000 (23:36 +0100)]
Move the receiver stuff into its own thread, starting before the senders.
Also add some stats.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 22:08:14 +0000 (23:08 +0100)]
Add a new printf, for debugging.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 21:47:10 +0000 (22:47 +0100)]
Actually send (random) data.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 20:40:32 +0000 (21:40 +0100)]
Make a special "listen-only" mode.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 20:36:45 +0000 (21:36 +0100)]
Create threads in a detached state.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 20:30:41 +0000 (21:30 +0100)]
Tweak the output a bit.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 20:24:37 +0000 (21:24 +0100)]
Make the sender a bit less dumb.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 20:13:08 +0000 (21:13 +0100)]
Add a Pareto random number generator.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 19:44:19 +0000 (20:44 +0100)]
Add an option for setting the number of senders.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 19:42:13 +0000 (20:42 +0100)]
Start firing off sender workers.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 19:39:15 +0000 (20:39 +0100)]
Write a friendly "we're ready" message.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 18:40:25 +0000 (19:40 +0100)]
s/file/list/ in the options.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 18:27:36 +0000 (19:27 +0100)]
Check for empty source or destination list.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 18:22:25 +0000 (19:22 +0100)]
Also read the sources.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 18:21:23 +0000 (19:21 +0100)]
Generalize the file reading, and store the IPs in memory.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 18:15:54 +0000 (19:15 +0100)]
Start parsing the destination list.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 17:22:07 +0000 (18:22 +0100)]
Make the port configurable.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 17:20:22 +0000 (18:20 +0100)]
Start parsing options.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:43:12 +0000 (17:43 +0100)]
Set a much smaller stack size for the worker threads, so we won't easily
run out of stack. Also add a FIXME.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:37:15 +0000 (17:37 +0100)]
Fix error detection for pthread_create().
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:35:50 +0000 (17:35 +0100)]
Set SO_REUSEADDR.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:33:45 +0000 (17:33 +0100)]
Check the return value of pthread_create.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:28:18 +0000 (17:28 +0100)]
Make the receiver worker actually handle the socket.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:21:26 +0000 (17:21 +0100)]
Add a loop listening for new connections.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:08:25 +0000 (17:08 +0100)]
listen() on the socket.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 16:05:37 +0000 (17:05 +0100)]
Bind to the right port.
sgunderson@bigfoot.com [Wed, 31 Jan 2007 15:58:59 +0000 (16:58 +0100)]
Begin!