We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  1. 30 Aug, 2008 7 commits
    • Evan Prodromou's avatar
      better logging in ombqueuehandler · 047db537
      Evan Prodromou authored
      darcs-hash:20080830055416-84dde-fad0303b1d4b7265e7f01faf90e088e409c7d8b3.gz
      047db537
    • Evan Prodromou's avatar
      log transport when claiming a notice · ca1f639f
      Evan Prodromou authored
      darcs-hash:20080830054933-84dde-58cc7aa6947612cda9987d532d85d9dd81e32410.gz
      ca1f639f
    • Evan Prodromou's avatar
      use common log in error handler rather than echo · 439c14d9
      Evan Prodromou authored
      darcs-hash:20080830053052-84dde-279d1c52e9b8696079ba686009ce2d71725a690e.gz
      439c14d9
    • Evan Prodromou's avatar
      typo preventing detection of addresses · a586bbed
      Evan Prodromou authored
      darcs-hash:20080830052810-84dde-e90c46cc8d9a48a91098efd123c45108ce2903b6.gz
      a586bbed
    • Evan Prodromou's avatar
      strtolower jids for comparison · 706dc53d
      Evan Prodromou authored
      darcs-hash:20080830052143-84dde-81ba3f1e687605d23e9bdc2c3672ac7ae36f9b60.gz
      706dc53d
    • Evan Prodromou's avatar
      forward messages from queuehandler to listener · 4cdd9028
      Evan Prodromou authored
      The queuehandler sends messages to the user. If the user replies, the
      messages are typically sent directly to the queuehandler (including
      resource), not the default bot JID.
      
      We add a little code for the xmppqueuehandler to periodically service
      its queue of received messages. Received messages are forwarded to the
      listener to deal with. We use XEP 33, 'addresses', to note the
      original sender.
      
      The xmppdaemon checks to see if the 'from' on a message is the daemon
      address. If so, it looks for a XEP 33 'addresses' stanza, with an
      'ofrom' address, which shows who it was originally is from.
      
      This should let us send from one resource ID and still process
      incoming messages in a different connection.
      
      darcs-hash:20080830040717-84dde-59c75bfb107a1dd5fd531106751b4544bfd15656.gz
      4cdd9028
    • Evan Prodromou's avatar
      add 'raw' to payload to allow getting to the raw xml · 9907a210
      Evan Prodromou authored
      darcs-hash:20080830000314-84dde-c83d970dbaf046fa37b4af13a23795abcc20e33b.gz
      9907a210
  2. 29 Aug, 2008 7 commits
    • Evan Prodromou's avatar
      strip script ending from end of xmppdaemon · 9ad8f276
      Evan Prodromou authored
      darcs-hash:20080829202613-84dde-58f58a315ea0093c5b029b01492fd71d2fed014c.gz
      9ad8f276
    • Evan Prodromou's avatar
      lost $sent_to in jabber_public_notice · b17bb986
      Evan Prodromou authored
      darcs-hash:20080829200859-84dde-d1c4c5897096a06dec8be14e81499d70a79c78d2.gz
      b17bb986
    • Evan Prodromou's avatar
      many jabber queue management changes · f5fe0136
      Evan Prodromou authored
      Added a method to QueueManager to let subclasses do stuff when idle.
      Needed so that XMPP queue manager can service its message queue.
      
      Cleaned up jabber_broadcast_message quite a bit. Use custom joins
      instead of loop-and-query, should fix some problems with users who are
      getting messages even after turning off notification. Only build $msg
      and $entry once, and use the XMPPHP function for messages with a
      payload, rather than rolling our own.
      
      darcs-hash:20080829200352-84dde-427e4ca8c81d4222a36f78e7c580b611ff0bf765.gz
      f5fe0136
    • Evan Prodromou's avatar
      a little more robust confirm handler · a0f726fb
      Evan Prodromou authored
      darcs-hash:20080829182349-84dde-a6d4056d6fa2ecb4c5ed07f3a3a40576315ec4d9.gz
      a0f726fb
    • Evan Prodromou's avatar
      fix name of instantiated class · c9782862
      Evan Prodromou authored
      darcs-hash:20080829182112-84dde-c29ccd959e19e18cc2ceac1ba701f351f914c26b.gz
      c9782862
    • Evan Prodromou's avatar
      split public stream to its own queue handler · c4d67892
      Evan Prodromou authored
      Add another queue handler for the public stream. Should further
      parallelize the work of sending out messages.
      
      darcs-hash:20080829181702-84dde-594505aa73d2380b13bd98917b70b02bac597d12.gz
      c4d67892
    • Evan Prodromou's avatar
      harmonize csrf and queues · f6524188
      Evan Prodromou authored
      darcs-hash:20080829174012-84dde-4859ce0a34a50080f8376fa3278c3aa3e3a3046d.gz
      f6524188
  3. 28 Aug, 2008 12 commits
  4. 27 Aug, 2008 4 commits
    • Evan Prodromou's avatar
      got two lines reversed · cd5dc324
      Evan Prodromou authored
      darcs-hash:20080827211940-84dde-d5b404023a2fb6b74b6255dd91910c9ec7df3cc6.gz
      cd5dc324
    • Evan Prodromou's avatar
      change queue_item to use a compound primary key · 35ed6f47
      Evan Prodromou authored
      Breaking up to use multiple queue handlers means we need multiple
      queue items for the same notice. So, change the queue_item table to
      have a compound pkey, (notice_id,transport).
      
      darcs-hash:20080827211239-84dde-db118799bfd43be62fb02380829c64813c9334f8.gz
      35ed6f47
    • Evan Prodromou's avatar
      remove unimplemented methods from XmppDaemon · f59ead93
      Evan Prodromou authored
      darcs-hash:20080827210429-84dde-90c22dbee16f74f53464dcd538a6dbcf49db4f28.gz
      f59ead93
    • Evan Prodromou's avatar
      break up monolithic xmppdaemon into multiple queue handlers · b9f0ea6f
      Evan Prodromou authored
      Eventually, the poor xmppdaemon has become overloaded with extra
      tasks. So, I've broken it up. Now, we have 5 background scripts, and
      more coming:
      
      * xmppdaemon.php - handles incoming XMPP messages only.
      * xmppqueuehandler.php - sends notices from the queue out through XMPP.
      * smsqueuehandler.php - sends notices from the queue out over SMS
      * ombqueuehandler.php - sends notices from the queue out over OMB
      * xmppconfirmhandler.php - sends confirmation requests out over XMPP.
      
      This is in addition to maildaemon.php, which takes incoming messages.
      
      None of these are "true" daemons -- they don't daemonize themselves
      automatically. Use nohup or another tool to background them. monit can
      also be useful to keep them running.
      
      At some point, these might become fork()'ing daemons, able to handle
      more than one notice at a time. For now, I'm just running multiple
      instances, hoping they don't interfere.
      
      darcs-hash:20080827205407-84dde-97884a12f5f4e54c93bc785bd280683d1ee7e749.gz
      b9f0ea6f
  5. 29 Aug, 2008 10 commits