Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
cloogle-irc
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Cloogle
  • Archived projects
  • cloogle-irc
  • Issues
  • #6

Closed
Open
Opened Jul 12, 2017 by Camil Staps@cstaps🚀Owner

Only delay messages when needed

Currently, every message is delayed by 500ms (send in IRCBot). It would be preferable if this delay is only induced when needed to avoid throttling. One way to do this is to move the sleep call to after send_MT. This is still rather conservative; if a state is kept with the timestamps of previous messages the delay would not have to be used if only one other message has been sent recently. A slightly simpler (though again, more conservative) way would be to keep a counter of recent messages, and when it reaches a certain threshold delay for a certain amount of time (longer than 500ms).

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: cloogle/archived/cloogle-irc#6