Solved

twisted static.file

Posted on 2011-09-12
3
275 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux / python expert needed 3 88
Install pygame on Mac OS X- Why are there new current instructions? 10 87
run a set of files in Python 2 47
How to use pyenv 4 16
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…
Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now