[wingide-users] Here's a
strangeone...SocketServer.ThreadingTCPServer
Harper, Jason
jharper at qualcomm.com
Thu Apr 17 15:53:26 MDT 2008
I believe I have this one resolved. The SocketServer.ThreadingTCPServer
object does an import of the threading module in its process_request
method. This seems to cause a problem with threading in general
(outside of Wing). I derived my own class from ThreadingTCPServer so I
can override the process_request method to avoid the in-line import of
the threading module.
Thanks.
-Jason
-----Original Message-----
From: wingide-users-bounces at wingware.com
[mailto:wingide-users-bounces at wingware.com] On Behalf Of Harper, Jason
Sent: Thursday, April 17, 2008 2:13 PM
To: Wingware Support
Cc: wingide-users
Subject: RE: [wingide-users] Here's a
strangeone...SocketServer.ThreadingTCPServer
Thanks...I'm going to study the thread interactions as a possible
problem.
A little more info about our app...it is a GUI (wxPython) app. I am
spinning up a thread for the TCP Server to run in (so I don't block the
GUI). Note that TCPServer works OK, but it is ThreadingTCPServer that
I'm having trouble with. ThreadingTCPServer spins up a thread to handle
each incoming request.
Thanks for the pointers so far.
-----Original Message-----
From: Wingware Support [mailto:support at wingware.com]
Sent: Thursday, April 17, 2008 1:03 PM
To: Harper, Jason
Cc: wingide-users
Subject: Re: [wingide-users] Here's a strange
one...SocketServer.ThreadingTCPServer
Harper, Jason wrote:
> Since my app is working in the Wing debugger, is it possible that Wing
> is doing some sort of TCP/socket setup that my app is inadvertently
> making good use of?
It's possible because the debugger uses its own tcp connection to
communicate with the IDE, but I would need to know more about your
program to know what it could be. It also could be a threading issue --
the debugger inevitably changes thread scheduling which can bring out or
hide threading bugs.
Cheers,
John
_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
More information about the wingide-users
mailing list