Solved

twisted static.file

Posted on 2011-09-12
3
278 Views
Last Modified: 2012-05-12
Hi all,
I am in the process of developing a twisted  based web app which will be deployed in the form of a winnt service.
my problem is that when i try to serve a file using static.file the app seems to hang indefinitely, any suggestion as to what mignt be causing this behaviour

TIA
0
Comment
Question by:tristan625
3 Comments
 
LVL 3

Accepted Solution

by:
defc0n1 earned 500 total points
ID: 36592244
Without a look at your code its really hard to tell what is causing your script to hang but I would recommend to put all potential blocking operations in a separete thread.

See the Python documentation about threads here: http://www.python.org/doc//current/library/threading.html?
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 37485183
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Plenty of writing has gone on the web trying to compare Python with other competitive programming languages and vice versa. However, not much has been put into a wholistic perspective. This article should help you decide whether to adopt Python as a…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question