Hi Guys,

As some of you may have noticed, yesterday my script (smsToLaconica) went a
bit off the rails, reposting my update every 60 seconds. Fortunately, it was
spotted pretty quickly, and only about 40 updates were sent, but I know I'm
now going to have to re-write at least a portion of my code to stop it
sending the same update if it's queued more than once.

I was wondering whether it would be worth addressing this within the
Laconica codebase as well.

Those who have read the code in smsToLaconica will know that I'm not the
greatest coder in the world, and the last few times I've tried to get into
the code of the Laconica project it's completely overwhelmed me - a whole
different class of coding than I'm used to! So, I was wondering whether I
can describe what I think should happen, and maybe someone can pick it up?
I've created a ticket within trac Ref: 1283 - but this basically just has
the text from below.

So, currently when a message is queued for submission, I guess it
effectively is added to a database table, that is then handled by the
various queue handlers. If, when the queue handler picks up a new update
from any of the inbound queues, it checks what the last update was from the
named account submitting that change, and if it's seen the same message
$config[flood_control][num_messages] in $config[flood_control][time_limit]
minutes, it silently (or, maybe, not-so silently - returning an appropriate
HTTP error code - perhaps 409) ditches that update.

While I was cleaning up the mess my script made yesterday, I noticed that
Twitter only showed one update of the 40 (as I use the twitter function
within Identi.ca), Facebook showed four (I use the Identi.ca application)
and Friendfeed (updated through what I guess is the RSS feed) had kept all
40 of the updates, so, at least some of those other systems I update have
implemented flood control, and I guess long-term it will help Laconica
administrators by ensuring they don't have to block users When Scripts Go
Bad! (TM).

My sincere appologies to the Control Yourself inc. team for any
inconvenience I caused yesterday/last night.
-- 
Jon "The Nice Guy" Spriggs LPIC-1 Certified
hackerkey.com
://v4sw6BHUhw5ln3pr5$ck4ma3u7L$w5TUX$m5l7ADFKLRSU$i852Ne5t5BGRSb8AGKMOPTen6a2Xs0Ir5p-2.88/0g5CMT
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to