X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=udp_send.c;h=ac656ff2cc02a47353fb73231fa96ad517dcd090;hb=cdbc8067a2e27ee7f9e0d8ff11cf415603fc0558;hp=91550aa8c66836239df07193d46d5d470612767e;hpb=27e8c0dca96754834fcc358cfbab548e0be69eb6;p=paraslash.git diff --git a/udp_send.c b/udp_send.c index 91550aa8..ac656ff2 100644 --- a/udp_send.c +++ b/udp_send.c @@ -21,8 +21,8 @@ #include "net.h" #include "server.h" #include "list.h" -#include "send.h" #include "sched.h" +#include "send.h" #include "vss.h" #include "portable_io.h" #include "fd.h" @@ -60,7 +60,7 @@ static void udp_close_target(struct sender_client *sc) return; if (ut->sent_fec_eof) return; - PARA_NOTICE_LOG("sending FEC EOF\n"); + PARA_INFO_LOG("sending FEC EOF\n"); len = vss_get_fec_eof_packet(&buf); /* Ignore write() errors since we are closing the target anyway. */ if (write(sc->fd, buf, len)) @@ -72,7 +72,8 @@ static void udp_delete_target(struct sender_client *sc, const char *msg) { struct udp_target *ut = sc->private_data; - PARA_NOTICE_LOG("deleting %s (%s) from list\n", sc->name, msg); + if (!process_is_command_handler()) + PARA_NOTICE_LOG("deleting %s (%s) from list\n", sc->name, msg); udp_close_target(sc); /* command handlers already called close_listed_fds() */ if (!process_is_command_handler()) { @@ -248,7 +249,7 @@ static int udp_init_fec(struct sender_client *sc) struct udp_target *ut = sc->private_data; int mps; - PARA_NOTICE_LOG("sending to udp %s\n", sc->name); + PARA_INFO_LOG("sending to udp %s\n", sc->name); ut->sent_fec_eof = false; mps = generic_max_transport_msg_size(sc->fd) - sizeof(struct udphdr); PARA_INFO_LOG("current MPS = %d bytes\n", mps);