Revision: 599
Author: kerphi
Date: 2006-06-16 07:45:47 -0700 (Fri, 16 Jun 2006)
ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=599&view=rev
Log Message:
-----------
Bandwidth optimization: do not send the "ok" ack when the update command is run
Modified Paths:
--------------
trunk/src/commands/update.class.php
Modified: trunk/src/commands/update.class.php
===================================================================
--- trunk/src/commands/update.class.php 2006-06-16 14:20:29 UTC (rev 598)
+++ trunk/src/commands/update.class.php 2006-06-16 14:45:47 UTC (rev 599)
@@ -44,8 +44,9 @@
// $cmd =& pfcCommand::Factory("notice");
// $cmd->run($xml_reponse, $clientid, _pfc("%s quit (timeout)",$u), $sender, $recipient, $recipientid, 2);
// }
-
- $xml_reponse->addScript("pfc.handleResponse('update', 'ok', '');");
+
+ // do not send a response in order to save some bandwidth
+ // $xml_reponse->addScript("pfc.handleResponse('update', 'ok', '');");
}
else
$xml_reponse->addScript("pfc.handleResponse('update', 'ko', '');");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|