Announcement

Collapse
No announcement yet.

A crash bug or just a coincidence?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A crash bug or just a coincidence?

    O/S: Gentoo & latest DNAS


    I wrote a php script to check file 7.html, so I can check to see if the source is connected..

    Ok, to get the file 7.html, I use the php fputs command. This is where it gets screwy....

    If I do:

    PHP Code:
    fputs($scp,"GET /7.html HTTP/1.0\r\nUser-Agent: SC Checker (Mozilla Compatible)\r\n\r\n"); 
    it doesnt crash the DNAS, but if I leave out (Mozilla Compatible) like so:

    PHP Code:
    fputs($scp,"GET /7.html HTTP/1.0\r\nUser-Agent: SC Checker\r\n\r\n"); 
    it crashes the DNAS!

    If this is a known issue, then anyone can crash DNAS' by this way, no?

    Any thoughts?
    Regards,

    DJ Pedster

  • #2
    PHP Code:
    <?php
    $fp 
    = @fsockopen("mystream.url""myport");
    fputs($fp,"GET /7.html HTTP/1.0\r\nUser-Agent: SC Checker\r\n\r\n");
    ?>
    ... doesnt crash my test stream running SHOUTcast DNAS 1.9.8 and 1.9.9b on debian linux 4.0 with a 2.6.24.5 kernel.
    It shows only the following on the DNAS log:
    code:
    <08/01/08@14:03:15> [dest: myhost] Invalid resource request(/7.html)
    Which DNAS version and which operating system do you use?
    greets,
    Michael

    TechnoBase.FM | HouseTime.FM | HardBase.FM | TranceBase.FM | CoreTime.FM | We aRe oNe

    Comment


    • #3
      Er, it happens that I'm running

      SHOUTcast Server Version 1.9.6/Linux

      Is this the latest for *nix....Or specifically, Gentoo?
      Regards,

      DJ Pedster

      Comment


      • #4
        You use an very old version from july 2006 ;-)
        The latest version for linux, freebsd, mac and solaris is 1.9.8.
        There aren`t any special versions for different linux distributions.

        You can download the latest version here.
        greets,
        Michael

        TechnoBase.FM | HouseTime.FM | HardBase.FM | TranceBase.FM | CoreTime.FM | We aRe oNe

        Comment


        • #5
          I'll upgrade later..... this could also be the reason that it falls over inimitantly (i.e needs a zap before it can be restarted), and I'm unable to run more than one port?
          Regards,

          DJ Pedster

          Comment


          • #6
            There is a 1.9.9 beta that allows the iPhone/iTouch to connect to the streams that you may want to think about. Just search for it to find the download link. There is also an SC_Trans beta at 2.x that you might be interested in.
            Your mileage may vary!

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎