Skip to Content.
Sympa Menu

wg-multicast - Re: SAP storm from 145.19.1.183

Subject: All things related to multicast

List archive

Re: SAP storm from 145.19.1.183


Chronological Thread 
  • From: Niels den Otter <>
  • To:
  • Subject: Re: SAP storm from 145.19.1.183
  • Date: Mon, 23 Jun 2008 08:02:34 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Niels den Otter wrote:
> I'm not sure if this is 'the bug', but I got an answer from the person
> that initiated the SAP stream yesterdam.
>
> He was setting up a miniSAP server (VLC) to announce a session via SDR.
> This appeared to work too good. Problem was in the announcement
> interval. The documentation said that the announcement interval should
> be provided in seconds, while the sourcecode would have a
> usleep(interval) so in microseconds.

I got some more information. He was using version 0.3.4, and changed the
following in sapserver.cpp:

- --- sapserver.cpp 2007-03-11 13:20:57.000000000 +0100
+++ sapserver.cpp.patched 2008-06-23 07:40:20.000000000 +0200
@@ -270,7 +270,7 @@
/* Wait for next sending */
if(should_exit)
break;
- - nanosleep( &delay, NULL );
+ sleep(30);
}
}

This was just to get the announcement interval correct (for him).

However it was still not clear to him why the original sleep was so
short

struct timespec
{
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};

This should indicate that the sleep was in seconds. Compilation was done
with GCC 3.3.4 under Linux 2.4.34 SMP.


- -- Niels
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhfPHoACgkQDxUhWEap0R6/MwCeJ9Bp7DGgR8PFtRKwFtpNBt5s
qT8AoILFHjaHtiTKJ8ipYmF6EH/toUWK
=EFOC
-----END PGP SIGNATURE-----



Archive powered by MHonArc 2.6.16.

Top of Page