I use twisted-getPage to post a lot of data (5Kb separate elements) to
Now, this data is sent every 5 seconds. The server can take upto 1-2
minutes to process the data and reply back. One issue that I am seeing is
that if I kill the sender (Cntrl+C) after I sent this data and then start it
immediately, the reply for the earlier message actually interferes with the
i.e. any further connections fails too - the error that comes is:
[Failure instance: Traceback (failure with no frames):
twisted.internet.error.ConnectionLost: Connection to the other side was lost
in a non-clean fashion.
If somebody could help me on this, I would be much thankful.
LivePage is working fine when I connect directly to the
When I put my resources behind apache, I need to define
transportRoot and jsModuleRoot, otherwise my client has
When I connect directly, I have references like this:
For Apache, I'm trying to init the LivePage with:
jsModuleRoot= url.URL('https', FQDN, ['foo', 'bar', 'jsmodule'])
transportRoot= url.URL('https', FQDN, ['foo', 'bar'])
LivePage doesn't work. I can't guess the right urls.
Apache works as transparent proxy, so I'm wondering if I need
to specify jsRoot and transportRoot to obtain something like:
But... how? Any hint from Athena coders?
Finally, a stupid question.
Maybe it's a better idea to build links like:
Obviously, one can always specify trasnportRoot and jsModuleRoot.
But in this case it should work for transparent proxies out of
Today is Sweetmorn, the 16th day of Chaos in the YOLD 3175
This is one of the rather vague questions everybody (rightfully)
hates, but if it's a generic
problem somebody had encountered in the past, I'd assume he can spot the match.
I'm using Python 2.5, Twisted 8.1, web2 and its wsgi module -- under Win32.
Everything works like a charm when run as a normal application, but
when running as a Win32 service
using the win32service and win32serviceutil modules, spurious HTTP
errors 500 are generated.
Another twisted server app I wrote which doesn't use web2 and wsgi
doesn't show this
Does this rings any bells?
Version 8.2 of Twisted is now out (actually, it's been out for over a
week now!). You can download it (in Windows, Mac, and source forms)
Twisted 8.2 is a major feature release, also including many important bug fixes:
* twistd now has a --umask option for specifying the umask
* Log observers can now be configured in .tac files
* ProcessProtocols can now implement processExited to get reliable
notification of a process exiting
* FTPClient has many more convenience methods
* Twisted.words now has a standalone XMPP router
* Twisted.names now supports NAPTR records
* Twisted.web can now deal with multi-value headers and supports the
Range header in requests for static files
There have been many additional improvements which you can read all
about in the release notes:
What is Twisted? From the web site:
Twisted is an event-driven networking engine written in Python and
licensed under the MIT license.
Twisted projects variously support TCP, UDP, SSL/TLS, multicast, Unix
sockets, a large number of protocols (including HTTP, NNTP, IMAP, SSH,
IRC, FTP, and others), and much more. See more at: