Changeset 542
- Timestamp:
- 09/08/08 17:29:31 (2 months ago)
- Location:
- branches/0.7/daemon
- Files:
-
- 3 modified
-
orbited-debug.cfg (modified) (1 diff)
-
orbited/static/Orbited.js (modified) (7 diffs)
-
orbited/transports/htmlfile.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.7/daemon/orbited-debug.cfg
r533 r542 2 2 reactor=epoll 3 3 proxy.enabled=1 4 session.ping_interval = 35 session.ping_timeout = 44 session.ping_interval = 60 5 session.ping_timeout = 70 6 6 7 7 [listen] -
branches/0.7/daemon/orbited/static/Orbited.js
r533 r542 362 362 363 363 364 364 Orbited.legacy = {} 365 //Orbited.web.connect = function() { 366 // 367 //} 365 368 366 369 Orbited.CometSession = function() { … … 449 452 throw new Error("Invalid readyState") 450 453 } 451 data = Orbited.base64.encode(data)454 var data = Orbited.base64.encode(data) 452 455 sendQueue.push([++packetCount, "data", data]) 453 456 ;;; self.logger.debug('sending==', sending); … … 540 543 case 'data': 541 544 ;;; self.logger.debug('base64 decoding ' + frame.data.length + ' bytes of data') 542 data = Orbited.base64.decode(frame.data)545 var data = Orbited.base64.decode(frame.data) 543 546 ;;; self.logger.debug('decode complete'); 544 547 self.onread(data); … … 1772 1775 throw new Error("Already Connected") 1773 1776 } 1777 self.logger.debug('self.connect', _url) 1774 1778 url = new Orbited.URL(_url) 1775 1779 url.path += '/htmlfile' … … 1787 1791 1788 1792 var doOpen = function(_url) { 1793 ;;; self.logger.debug('doOpen', _url) 1789 1794 htmlfile = new ActiveXObject('htmlfile'); // magical microsoft object 1790 1795 htmlfile.open(); … … 2174 2179 } 2175 2180 2176 2177 })();2178 2179 2180 2181 if (!this.JSON) { 2181 2182 … … 2496 2497 }(); 2497 2498 } 2499 Orbited.JSON = JSON; 2500 2501 })(); -
branches/0.7/daemon/orbited/transports/htmlfile.py
r533 r542 14 14 <html> 15 15 <head> 16 <script src="../ ../static/HTMLFileFrame.js"></script>16 <script src="../static/HTMLFileFrame.js"></script> 17 17 </head> 18 18 <body> … … 29 29 self.request.setHeader('pragma', 'no-cache') 30 30 self.request.setHeader('expires', '-1') 31 logger.debug('send initialData: ', self.initialData) 31 32 self.request.write(self.initialData) 32 33 … … 38 39 # after they are executed. 39 40 payload = '<script>e(%s)</script>' % (json.encode(packets),) 41 logger.debug('write ', payload) 40 42 self.request.write(payload); 41 43 self.totalBytes += len(payload)