*** sunew has quit IRC | 00:06 | |
*** ccomb has quit IRC | 00:10 | |
*** timte has quit IRC | 00:34 | |
*** lurkymclurkleton has quit IRC | 00:48 | |
*** afd_ has quit IRC | 01:06 | |
*** dunny has joined #zope3-dev | 01:07 | |
*** strichter has quit IRC | 01:22 | |
*** J1m has quit IRC | 02:06 | |
*** menesis has quit IRC | 02:16 | |
*** ignas has joined #zope3-dev | 02:58 | |
*** davisagli is now known as davisagli|away | 03:09 | |
*** strichter has joined #zope3-dev | 03:14 | |
*** davisagli|away is now known as davisagli | 03:30 | |
*** davisagli is now known as davisagli|away | 03:32 | |
*** ignas has quit IRC | 03:35 | |
*** allisterb has quit IRC | 03:50 | |
*** aaronv has quit IRC | 03:55 | |
*** aaronv has joined #zope3-dev | 03:57 | |
*** allisterb has joined #zope3-dev | 04:05 | |
*** davisagli|away is now known as davisagli | 04:11 | |
*** afd_ has joined #zope3-dev | 04:12 | |
*** davisagli is now known as davisagli|away | 04:13 | |
*** davisagli|away is now known as davisagli | 04:16 | |
*** davisagli is now known as davisagli|away | 04:20 | |
*** davisagli|away is now known as davisagli | 04:23 | |
*** gary_poster has quit IRC | 04:24 | |
*** davisagli is now known as davisagli|away | 04:28 | |
*** strichter has quit IRC | 04:32 | |
*** afd_ has quit IRC | 04:38 | |
*** davisagli|away is now known as davisagli | 04:59 | |
*** benji has quit IRC | 06:16 | |
*** bbot_kgs341 has joined #zope3-dev | 07:00 | |
bbot_kgs341 | build #10 of Python2.4.6 64bit linux is complete: Success [build successful] Build details are at http://buildbot.afpy.org/kgs3.4/builders/Python2.4.6%2064bit%20linux/builds/10 | 07:20 |
---|---|---|
bbot_kgs341 | build #10 of Python2.5.5 64bit linux started, including [] | 07:20 |
*** stub has joined #zope3-dev | 07:32 | |
bbot_kgs341 | build #10 of Python2.5.5 64bit linux is complete: Success [build successful] Build details are at http://buildbot.afpy.org/kgs3.4/builders/Python2.5.5%2064bit%20linux/builds/10 | 07:42 |
*** sweh has joined #zope3-dev | 07:53 | |
*** bbot_ztk10 has joined #zope3-dev | 08:16 | |
*** bbot_kgs341 has quit IRC | 08:31 | |
*** Theuni1 has quit IRC | 08:31 | |
*** bbot_kgs341 has joined #zope3-dev | 08:32 | |
*** Theuni1 has joined #zope3-dev | 08:32 | |
*** davisagli is now known as davisagli|away | 08:34 | |
*** davisagli|away is now known as davisagli | 08:37 | |
bbot_ztk10 | build #10 of Python2.7.0 Linux 64bit is complete: Failure [failed test ztk test zopeapp] Build details are at http://buildbot.afpy.org/ztk1.0/builders/Python2.7.0%20Linux%2064bit/builds/10 | 08:37 |
*** afd_ has joined #zope3-dev | 08:38 | |
bbot_ztk10 | build #10 of Python2.4.6 Linux 64bit is complete: Success [build successful] Build details are at http://buildbot.afpy.org/ztk1.0/builders/Python2.4.6%20Linux%2064bit/builds/10 | 08:38 |
bbot_ztk10 | build #10 of Python2.6.5 Linux 64bit is complete: Success [build successful] Build details are at http://buildbot.afpy.org/ztk1.0/builders/Python2.6.5%20Linux%2064bit/builds/10 | 08:39 |
bbot_ztk10 | build #10 of Python2.5.5 Linux 64bit is complete: Success [build successful] Build details are at http://buildbot.afpy.org/ztk1.0/builders/Python2.5.5%20Linux%2064bit/builds/10 | 08:39 |
*** JaRoel|4D has quit IRC | 08:41 | |
*** zagy has joined #zope3-dev | 08:44 | |
*** timte has joined #zope3-dev | 08:47 | |
*** jfkw has quit IRC | 08:54 | |
*** davisagli is now known as davisagli|away | 09:01 | |
*** menesis has joined #zope3-dev | 09:21 | |
*** alga has joined #zope3-dev | 09:23 | |
*** menesis has quit IRC | 09:29 | |
*** menesis has joined #zope3-dev | 09:30 | |
*** agroszer has joined #zope3-dev | 09:30 | |
*** ccomb has joined #zope3-dev | 09:31 | |
*** timte has quit IRC | 09:59 | |
*** ccomb has quit IRC | 10:31 | |
*** projekt01 has joined #zope3-dev | 10:43 | |
*** goschtl has joined #zope3-dev | 10:48 | |
*** ccomb has joined #zope3-dev | 11:06 | |
*** jukart has joined #zope3-dev | 11:09 | |
*** sunew has joined #zope3-dev | 11:18 | |
*** agroszer has quit IRC | 11:23 | |
*** agroszer_ has joined #zope3-dev | 11:23 | |
*** agroszer_ is now known as agroszer | 11:23 | |
*** ignas has joined #zope3-dev | 11:24 | |
*** JaRoel|4D has joined #zope3-dev | 11:25 | |
*** menesis has quit IRC | 11:30 | |
*** menesis has joined #zope3-dev | 11:32 | |
*** stub has left #zope3-dev | 11:35 | |
*** stub has joined #zope3-dev | 11:37 | |
*** stub has joined #zope3-dev | 11:37 | |
*** stub has quit IRC | 11:42 | |
*** sunew has quit IRC | 11:49 | |
*** stub has joined #zope3-dev | 11:49 | |
*** MJ has joined #zope3-dev | 11:49 | |
*** jhauser has joined #zope3-dev | 11:52 | |
*** fcorrea has joined #zope3-dev | 12:11 | |
*** timte has joined #zope3-dev | 12:12 | |
*** jhauser has quit IRC | 12:26 | |
*** goschtl has quit IRC | 12:28 | |
*** bbot_ztk10 has quit IRC | 12:39 | |
*** mgedmin has quit IRC | 12:39 | |
*** bbot_kgs341 has quit IRC | 12:39 | |
*** Theuni1 has quit IRC | 12:39 | |
*** MJ has quit IRC | 12:39 | |
*** jukart has quit IRC | 12:39 | |
*** projekt01 has quit IRC | 12:39 | |
*** sweh has quit IRC | 12:39 | |
*** alga has quit IRC | 12:39 | |
*** stub has quit IRC | 12:39 | |
*** fcorrea has quit IRC | 12:39 | |
*** zagy has quit IRC | 12:39 | |
*** timte has quit IRC | 12:39 | |
*** allisterb has quit IRC | 12:39 | |
*** hazmat has quit IRC | 12:39 | |
*** yvl has quit IRC | 12:39 | |
*** jml has quit IRC | 12:39 | |
*** davisagli|away has quit IRC | 12:39 | |
*** mcdonc has quit IRC | 12:39 | |
*** alecm has quit IRC | 12:39 | |
*** teratorn has quit IRC | 12:39 | |
*** ccomb has quit IRC | 12:39 | |
*** jpcw has quit IRC | 12:39 | |
*** multani has quit IRC | 12:39 | |
*** daniel_bot has quit IRC | 12:39 | |
*** kiorky has quit IRC | 12:39 | |
*** agroszer has quit IRC | 12:39 | |
*** markusleist has quit IRC | 12:39 | |
*** menesis has quit IRC | 12:39 | |
*** JaRoel|4D has quit IRC | 12:39 | |
*** kobold_ has quit IRC | 12:39 | |
*** afd_ has quit IRC | 12:39 | |
*** ignas has quit IRC | 12:39 | |
*** dunny has quit IRC | 12:39 | |
*** BjornT has quit IRC | 12:39 | |
*** cbcunc has quit IRC | 12:39 | |
*** avn has quit IRC | 12:39 | |
*** goschtl has joined #zope3-dev | 12:40 | |
*** timte has joined #zope3-dev | 12:40 | |
*** fcorrea has joined #zope3-dev | 12:40 | |
*** MJ has joined #zope3-dev | 12:40 | |
*** stub has joined #zope3-dev | 12:40 | |
*** menesis has joined #zope3-dev | 12:40 | |
*** JaRoel|4D has joined #zope3-dev | 12:40 | |
*** ignas has joined #zope3-dev | 12:40 | |
*** agroszer has joined #zope3-dev | 12:40 | |
*** jukart has joined #zope3-dev | 12:40 | |
*** ccomb has joined #zope3-dev | 12:40 | |
*** projekt01 has joined #zope3-dev | 12:40 | |
*** alga has joined #zope3-dev | 12:40 | |
*** zagy has joined #zope3-dev | 12:40 | |
*** afd_ has joined #zope3-dev | 12:40 | |
*** Theuni1 has joined #zope3-dev | 12:40 | |
*** bbot_kgs341 has joined #zope3-dev | 12:40 | |
*** bbot_ztk10 has joined #zope3-dev | 12:40 | |
*** sweh has joined #zope3-dev | 12:40 | |
*** allisterb has joined #zope3-dev | 12:40 | |
*** dunny has joined #zope3-dev | 12:40 | |
*** mcdonc has joined #zope3-dev | 12:40 | |
*** markusleist has joined #zope3-dev | 12:40 | |
*** alecm has joined #zope3-dev | 12:40 | |
*** jpcw has joined #zope3-dev | 12:40 | |
*** multani has joined #zope3-dev | 12:40 | |
*** BjornT has joined #zope3-dev | 12:40 | |
*** kiorky has joined #zope3-dev | 12:40 | |
*** hazmat has joined #zope3-dev | 12:40 | |
*** yvl has joined #zope3-dev | 12:40 | |
*** davisagli|away has joined #zope3-dev | 12:40 | |
*** cbcunc has joined #zope3-dev | 12:40 | |
*** mgedmin has joined #zope3-dev | 12:40 | |
*** avn has joined #zope3-dev | 12:40 | |
*** kobold_ has joined #zope3-dev | 12:40 | |
*** daniel_bot has joined #zope3-dev | 12:40 | |
*** teratorn has joined #zope3-dev | 12:40 | |
*** jml has joined #zope3-dev | 12:40 | |
*** Theuni1 has quit IRC | 12:41 | |
*** stub has quit IRC | 12:44 | |
*** stub has joined #zope3-dev | 12:53 | |
*** stub has joined #zope3-dev | 12:53 | |
*** Theuni1 has joined #zope3-dev | 12:55 | |
*** jhauser has joined #zope3-dev | 13:04 | |
*** menesis has quit IRC | 13:05 | |
*** El_Rolando has joined #zope3-dev | 13:17 | |
*** benji has joined #zope3-dev | 13:20 | |
*** menesis has joined #zope3-dev | 13:38 | |
*** projekt01 has quit IRC | 13:41 | |
*** gary_poster has joined #zope3-dev | 13:55 | |
*** jhauser has quit IRC | 13:59 | |
*** jhauser has joined #zope3-dev | 13:59 | |
*** chaoflow has quit IRC | 14:35 | |
*** chaoflow has joined #zope3-dev | 14:36 | |
*** aaronv has joined #zope3-dev | 14:43 | |
*** strichter has joined #zope3-dev | 14:48 | |
*** stub has quit IRC | 15:00 | |
*** jml has quit IRC | 15:13 | |
*** stub has joined #zope3-dev | 15:13 | |
*** stub has joined #zope3-dev | 15:13 | |
*** fcorrea has quit IRC | 15:13 | |
*** allisterb has quit IRC | 15:29 | |
*** chaoflow has quit IRC | 15:35 | |
*** chaoflow has joined #zope3-dev | 15:35 | |
*** aaronv has quit IRC | 15:37 | |
*** aaronv has joined #zope3-dev | 15:41 | |
*** allisterb has joined #zope3-dev | 15:43 | |
*** lamike has joined #zope3-dev | 15:48 | |
*** J1m has joined #zope3-dev | 16:04 | |
*** lamike has left #zope3-dev | 16:33 | |
*** MJ has quit IRC | 16:48 | |
*** timte has quit IRC | 16:51 | |
*** mcdonc has quit IRC | 16:58 | |
*** mcdonc has joined #zope3-dev | 16:59 | |
*** fcorrea has joined #zope3-dev | 17:04 | |
*** allisterb has quit IRC | 17:04 | |
*** alga has quit IRC | 17:07 | |
*** MJ has joined #zope3-dev | 17:17 | |
*** allisterb has joined #zope3-dev | 17:17 | |
*** lurkymclurkleton has joined #zope3-dev | 17:21 | |
*** dunny has quit IRC | 17:41 | |
*** davisagli|away is now known as davisagli | 18:07 | |
*** El_Rolando has quit IRC | 18:08 | |
*** davisagli is now known as davisagli|away | 18:13 | |
*** jukart has quit IRC | 18:21 | |
*** goschtl has quit IRC | 18:24 | |
*** zagy has quit IRC | 18:26 | |
*** sweh has quit IRC | 18:32 | |
*** alga has joined #zope3-dev | 18:38 | |
*** stub has quit IRC | 18:40 | |
*** davisagli|away is now known as davisagli | 18:41 | |
*** JaRoel|4D has quit IRC | 18:56 | |
*** alga has quit IRC | 19:00 | |
*** benji is now known as benji-lunch | 19:00 | |
*** sweh has joined #zope3-dev | 19:04 | |
*** ccomb1 has joined #zope3-dev | 19:28 | |
*** ccomb has quit IRC | 19:31 | |
*** benji-lunch is now known as benji | 20:04 | |
*** ccomb1 has quit IRC | 20:19 | |
*** menesis has quit IRC | 20:26 | |
strichter | can someone remond me why zope.server does not support the write() function in its WSGI implementation? When I set write = task.write, everything works perfectly in a little test setup and it enables streaming of data. | 20:50 |
strichter | (Not that this is useful to zope.publisher-based apps, but it is for other non-publisher WSGI apps.) | 20:50 |
strichter | if nobody objects in the next minutes, I am going to write a test and check this change in. :-) | 20:51 |
*** zagy has joined #zope3-dev | 20:52 | |
*** jukart has joined #zope3-dev | 20:54 | |
mgedmin | is write() still part of wsgi? I thought it was deprecated or something | 20:55 |
strichter | mgedmin: oh I should check | 20:55 |
strichter | mgedmin: but it is incredibly useful :-) | 20:55 |
mgedmin | doesn't it break middleware or something like that? | 20:56 |
strichter | mgedmin: so PEP 333 still has the write function as a requirement | 20:57 |
mgedmin | ok, write() is mentioned in PEP-333, it's _not_ deprecated (as in the word "deprecated" is not used), but the pep says "New WSGI applications and frameworks *should not* use the write() callable if it is possible to avoid doing so." | 20:57 |
strichter | mgedmin: you are right, it would break middleware that messes with the output | 20:58 |
strichter | mgedmin: mmh, it puts some burden on the app to produce iterables | 20:58 |
mgedmin | I believe Graham Dumpleton occasionally blogs about the problems with the WSGI spec | 20:59 |
mgedmin | there was something about wsgi lacking proper support for streaming | 20:59 |
mgedmin | but I forgot all the details :( | 20:59 |
strichter | I guess I will fix my app code instead, creating an iterator wrapper | 20:59 |
strichter | mgedmin: I am working on a proxy server and right now it must receive all the data from the target server before it can serve the result; while the server does not suffer a performance hit, the user perceived performance on the client suffers, because the browser cannot start rendering the partially received data | 21:01 |
strichter | I can definitely see why streaming is not supported if you need app logic within the stream generation | 21:03 |
*** zagy has quit IRC | 21:05 | |
*** agroszer has quit IRC | 21:17 | |
J1m | strichter, streaming should be done using an iterator | 21:33 |
J1m | write was actually included, I think, for compat w z2, which is sad. | 21:33 |
strichter | J1m: right, though zope.server did not support it correctly | 21:33 |
strichter | J1m: since it only made one call to task.write() | 21:33 |
strichter | J1m: I changed the code so that the WSGI server code itself iterates through the result iterable causing multiple task.write calls | 21:34 |
J1m | I thought we made zope.server work properly for handling streaming large files. | 21:34 |
strichter | definitely not | 21:35 |
J1m | dang | 21:35 |
J1m | maybe we did a bunch of work in the publisher but never checked properly that it was properly plumbed through the server. | 21:35 |
strichter | it is a two line change on the server | 21:35 |
strichter | I just need to write a decent test for it now. | 21:36 |
J1m | That's good. It's just very very sad that it took this long to fix it. | 21:36 |
J1m | still almost unbeleavable. | 21:36 |
strichter | yeah, I was beating my head why the performance of my proxy seemed to be so bad | 21:37 |
J1m | I dount your fix is enough. | 21:37 |
*** menesis has joined #zope3-dev | 21:37 | |
J1m | doubt | 21:37 |
strichter | I tested it and it streams fine for me now | 21:38 |
J1m | It's not enough to call task.write (assuming I understand what that does) for each return of iterator.next. | 21:38 |
strichter | why not? | 21:38 |
J1m | as task.write probably queues up the data. | 21:38 |
strichter | ah, but only to a certain point, I think | 21:38 |
strichter | let me find the file and line | 21:38 |
J1m | does task.write block? | 21:39 |
J1m | It has to queue when the socket stops taking data. | 21:39 |
J1m | You need some way to "drain" the iterator only when the output socket is writable. | 21:39 |
strichter | it defers the queue to dualmodechannel | 21:39 |
strichter | dualmodechannel.py, line 152 | 21:40 |
strichter | from what I can tell, dual mode channel does the heavy lifting on managing the transport | 21:41 |
J1m | so basically, you slurp data from a file into a buffer, probably in memory, or, at best a temporary file. | 21:41 |
strichter | yeah | 21:42 |
J1m | This doesn't really buy you much. | 21:42 |
strichter | all I do is an httplib call | 21:42 |
strichter | creates a result object | 21:42 |
J1m | You want something like twisted consumer/producer framework. | 21:42 |
J1m | Or zc.ngi's abaility to queue an iterator that gets consumed only when the socket can take data. | 21:43 |
strichter | right now my file sizes are relatively small | 21:43 |
strichter | usual web stuff, but the user-perceived performance sucks, because none of the data is forwarded from the original server until all of it is received | 21:44 |
J1m | ah | 21:44 |
J1m | Then it does buy you something. | 21:44 |
strichter | yep :-) | 21:44 |
J1m | especially since zope.server tries hard to output data as soon as possible, not waiting to get back into asyncore's select loop. | 21:45 |
strichter | yeah the initial response time dropped from 900ms to 250ms for a 300k file | 21:46 |
strichter | (the reason it takes 250ms is largely due to the fact that I need to make a socket connection and read the response headers before I can start forwarding) | 21:46 |
*** runyaga has joined #zope3-dev | 22:03 | |
*** ccomb has joined #zope3-dev | 22:12 | |
*** jukart has quit IRC | 22:19 | |
*** timte has joined #zope3-dev | 22:34 | |
*** timte has quit IRC | 22:44 | |
*** runyaga has quit IRC | 22:45 | |
*** runyaga has joined #zope3-dev | 22:47 | |
*** jhauser has quit IRC | 22:58 | |
*** sweh has quit IRC | 23:08 | |
*** alga has joined #zope3-dev | 23:17 | |
*** timte has joined #zope3-dev | 23:19 | |
*** afd_ has quit IRC | 23:26 | |
*** dunny has joined #zope3-dev | 23:31 | |
*** aaronv has quit IRC | 23:33 | |
*** jpcw has quit IRC | 23:44 | |
*** strichter has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!