]> git.tuebingen.mpg.de Git - paraslash.git/commit
udp_send: Force chunk queuing.
authorAndre Noll <maan@systemlinux.org>
Tue, 6 Apr 2010 17:51:17 +0000 (19:51 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 6 Apr 2010 17:51:17 +0000 (19:51 +0200)
commit5667dca4697c3bbbe4830699ee91df800bf2efd3
treedf18d667ff4ac953a666925e9fda2d7cd8cb1bf8
parentc1d6c466251d21d1fb7b513ba2297ebf94d44853
udp_send: Force chunk queuing.

This adds the public cq_force_enqueue() function to chunk_queue.c.
Unlike cq_enqueue() the new function does not return an error if the
queue is full, but drops old chunks from the queue in order to make
space for the new chunk.

The upd sender uses the new function to avoid kicking targets.
chunk_queue.c
chunk_queue.h
udp_send.c