Menu

Low speed for writting into channel

Help
2003-07-29
2003-08-10
  • Leander Hanwald

    Leander Hanwald - 2003-07-29

    Hi :)

    i'm actually testing SmartIrc. I must way: WOW :D

    But: I wrote some testscript that answer all lines i write into a testchannel. The answers of that are not in realtime or near of that.
    If i try to write 5 lines at one into the channel, i need at least 5 seconds for that.

    Is that a problem of the irc server, the php/script server, my chatclient or a problem of SmartIrc?

     
    • Mirco Bauer

      Mirco Bauer - 2003-07-29

      if you use windows and you don't have the socket extension in your PHP build, then it can be slow. Also when you test join the same server like the bot is on, if it's a different server than the normal IRC lag can delay things...

      SmartIRC responses usualy for me in less than 1 sec, and it's not just a testscript, it's a whole bot with tons of features and DB queries... :)

       
      • Leander Hanwald

        Leander Hanwald - 2003-07-29

        hi :)

        Thanks for the answer.

        The bot and me are on the same server.

        I tried it with socket and without (recompiled it). My PHP Version is 4.3.2 on the Server i tested it, the irc server is seperated.

        The testsituation:
        i wrote something in the channel.
        The irc bot must answer with 6 or 7 line, 20 chars each line.
        Every line need at least one second. They come very slow after eachother.

         
        • Mirco Bauer

          Mirco Bauer - 2003-07-29

          you can try to tweak the senddelay (which prevents flooding the IRC server). default is 250ms delay, thats not 1 second but it's artifactil delay, you can set it with $irc->setSenddelay(number-in-ms);
          do that before anything else... don't set it too low, because the bot would excess flood then it get disconnected :) but try some lower values and report which IRC Network and which server that is, because I am planning and documenating some example numbers...
          how low the delay can be between each message depends on the server...

           
    • Aidan

      Aidan - 2003-08-10

      Even with the value as low as 1, I still find its output very slow.

       
      • Mirco Bauer

        Mirco Bauer - 2003-08-10

        I just noted that the lowest value possible is 250 milliseconds, and that is hardcoded, change it in SmartIRC.php search for "$this->_senddelay = 250;"

        The problem is without any delay you get kicked from the server if its too much data... but you can play with it ofcourse..

         

Log in to post a comment.