Solved

twisted static.file

Posted on 2011-09-12
3
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

"The time has come," the Walrus said, "To talk of many things: Of sets--and lists--and dictionaries-- Of variable kinks-- And why you see it changing not-- And why so strange are strings." This part describes how variables and references (see …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
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…

624 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