473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

twisted problem with reactor.stop()

hello, everyone
I use twisted 1.3 in my python application.
in my program, I have one server and on client running at same time (so
2 reactor.run(installSignalHandlers=0) )
the client run in one thread and the server in an other thread (
reactor.callInThread(self.client... , reactor.callInThread(self.server
.....)
when I catch "escape" button, I make a reactor.stop() but it doesn't
seem to work and quit, and the application freeze. does anyone have any
solution to quit the application with twisted?
thanks in advance
Maxime

Dec 3 '06 #1
1 4254
ma*********@hotmail.com wrote:
I use twisted 1.3 in my python application.
Isn't 1.3 heavily outdated? The most recent is 2.4.
in my program, I have one server and on client running at same
time (so 2 reactor.run(installSignalHandlers=0) ) the client run
in one thread and the server in an other thread (
- Is it absolutely necessary to use two threads?
- Why do you need two reactors running? I'm not even sure if that's
possible or why I would want to do this.
when I catch "escape" button, I make a reactor.stop() but it
doesn't seem to work and quit, and the application freeze. does
anyone have any solution to quit the application with twisted?
So it seems you only stop one reactor of two. The other one would
have to be stopped, too, I think.

Regards,
Björn

--
BOFH excuse #112:

The monitor is plugged into the serial port

Dec 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Qp | last post by:
Hello. I'm building a simple chat server and client interface, and I've got everything working except for this: While the client's basic.LineReceiver protocol class can sendLine when a...
3
by: Rico Huijbers | last post by:
Does anybody have experience in writing Jabber clients with Twisted? I came across a simple sample, and tried to build out from it, but for some reason it's barely working. When I run the...
1
by: marchew | last post by:
hi, i have a problem integrating wxPython and Twisted under Win32. my application consumes 40-50% of CPU resources when wxFrame is visible and reactor (twisted) is running. i looked at...
2
by: Daniel Bickett | last post by:
Hello, I am writing an application using two event-driven libraries: wxPython, and twisted. The first problem I encountered in the program is the confliction between the two all-consuming...
9
by: Chris | last post by:
Does anyone know how to use twisted and tkinter. I have a simple tcp server and I want to send messages to it once connected using a tkinter button? I have built the code as far as I can but...
0
by: Chris | last post by:
Hi, Sorry for reposting but I changed my code and received a new error message so I thought I would try it on the group again. I have a working server and this is meant to be a chat client using...
4
by: rzimerman | last post by:
I'm hoping to write a program that will read any number of urls from stdin (1 per line), download them, and process them. So far my script (below) works well for small numbers of urls. However, it...
6
by: looping | last post by:
Hi, Probably not the best group to post my question but I'm sure there is some people here that use Twisted. First here is the beginning of my source code: from twisted.internet import reactor,...
1
by: Robert Hancock | last post by:
from twisted.web import client from twisted.internet import reactor import base64 import sys def printPage(data): print data reactor.stop() def printError(failure):
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.