Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3853680
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:30:23+00:00 2026-05-19T17:30:23+00:00

I am developing a networked application in Twisted, part of which consists of a

  • 0

I am developing a networked application in Twisted, part of which consists of a web interface written in Django.

I wish to use Twisted’s WSGI server to host the web interface, and I’ve written a working “tap” plugin to allow me to use twistd.

When running the server with the -n flag (don’t daemonize) everything works fine, but when this flag is removed the server doesn’t respond to requests at all, and there are no messages logged (though the server is still running).

There is a bug on Twisted’s Trac which seems to describe the problem exactly, and my plugin happens to be based on the code referenced in the ticket.

Unfortunately, the issue hasn’t been fixed – and it was raised almost a year ago.

I have attempted to create a ThreadPoolService class, which extends Service and starts a given ThreadPool when startService is called:

class ThreadPoolService(service.Service):
    def __init__(self, pool):
        self.pool = pool

    def startService(self):
        super(ThreadPoolService, self).startService()
        self.pool.start()

    def stopService(self):
        super(ThreadPoolService, self).stopService()
        self.pool.stop()

However, Twisted doesn’t seem to be calling the startService method at all. I think the problem is that with a “tap” plugin, the ServiceMaker can only return one service to be started – and any others belonging to the same application aren’t started. Obviously, I am returning a TCPServer service which contains the WSGI root.

At this point, I’ve hit somewhat of a bit of a brick wall. Does anyone have any ideas as to how I can work round this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:30:24+00:00Added an answer on May 19, 2026 at 5:30 pm

    Return a MultiService from your ServiceMaker; one that includes your ThreadPoolService as well as your main application service. The API for assembling such a thing is pretty straightforward:

    multi = MultiService()
    mine = TCPServer(...) # your existing application service
    threads = ThreadPoolService()
    mine.setServiceParent(multi)
    threads.setServiceParent(multi)
    return multi
    

    Given that you’ve already found the ticket for dealing with this confusing issue within Twisted, I look forward to seeing your patch :).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'am developing an application which is totally based on fetching data from web services.
I am developing an application which could be used in small networks where the
I'm developing an application (user space) which send notifications of value changes via network.
I am developing a network application in ANSI C. I would like to use
We are developing a web application to be hosted on our network, but the
I am developing a winforms application using .NET 2.0 and Sql Server 2005. I
I am developing an application that query to the server. In my Mac, I
I am developing an application in Spring Web MVC where i need to execute
I'am developing an application for android, which needs network in order to retrieve some
I am currently developing an application on iPad which connects to a client pc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.