Permalink
Browse files

git-svn-id: http://evserver.googlecode.com/svn/trunk@64 e9bb6d7e-af12…

…-11dd-bad7-87afd3b02348
  • Loading branch information...
majek04
majek04 committed Dec 14, 2008
1 parent ed02ec5 commit d5a74cad02456151b60c82782a6e2c393c528f04
View
@@ -183,7 +183,7 @@ def POST(self):
class cometread:
def GET(self):
lweb = web
- environ = web.ctx.environ # must cache it, becouse it's global!
+ environ = web.ctx.environ # must cache it, because it's global!
i = web.input(transport='iframe', callback='c')
if i.transport == 'longpoll':
return cometread_longpoll().GET()
@@ -258,3 +258,16 @@ def iterator():
application = web.wsgifunc(web.webpyfunc(urls, globals()))
+
+
+def simplest_application(environ, start_response):
+ t = transports.get_transport('xhrstream')
+ start_response('200 OK', t.get_headers())
+ def iterator():
+ yield t.start()
+ yield t.write('fist message!')
+ yield t.write('second message!')
+ yield t.write('third message!')
+ return iterator()
+
+
No changes.
View
@@ -221,6 +221,7 @@ def main(args):
log.error('Psyco import failed.')
+ log.info("Process pid=%i" % (os.getpid() ))
log.info("Running with verbosity %i (>=%s)" % (verbosity, logging.getLevelName(verbosity)))
log.info("Framework=%r, Main dir=%r, args=%r" % (options.framework, os.getcwd(), args))
libeventbinary, libeventversion = find_libevent_binary(options.libeventbinary)
Oops, something went wrong.

0 comments on commit d5a74ca

Please sign in to comment.