473,386 Members | 1,841 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,386 software developers and data experts.

SocketServer.py on win32

Has anyone used the SocketServer.py module successfully on windows?

I don't know if I'm doing something terribly wrong, here but I use a
SocketServer in my app, running it in a seperate thread, and get very
finnicky behavior on my windows XP machine (while the code runs fine
on other *nix platforms). Sometimes my app freezes as soon as the
socketserver thread is started, other times it is freezes once it
receives a connection. Any help would be greatly appreciated. I.e. is
it my code, or just one of those windows things? If it is a win.
thing, are there any reasonable workarounds?

Thanks in advance,
Dan Greenblatt
Jul 18 '05 #1
2 1649

"Daniel Greenblatt" <da*@cgl.ucsf.edu> wrote in message
news:25*************************@posting.google.co m...
Has anyone used the SocketServer.py module successfully on windows?

...Sometimes my app freezes as soon as the
socketserver thread is started, other times it is freezes once it
receives a connection.


I have been caught out under Windows running Python tasks interactively.
If you click in the command shell window (ie the title line says Select...)
then your python application will hang awaiting keyboard input!

Colin Brown
PyNZ

Jul 18 '05 #2
Hmmm. This socketserver is actually a small part of a much bigger
python app, running in a seperate thread. I haven't experimented with
running it interactively.

Thanks,
Dan

"Colin Brown" <cb****@metservice.com> wrote in message news:<3f********@news.iconz.co.nz>...
"Daniel Greenblatt" <da*@cgl.ucsf.edu> wrote in message
news:25*************************@posting.google.co m...
Has anyone used the SocketServer.py module successfully on windows?

...Sometimes my app freezes as soon as the
socketserver thread is started, other times it is freezes once it
receives a connection.


I have been caught out under Windows running Python tasks interactively.
If you click in the command shell window (ie the title line says Select...)
then your python application will hang awaiting keyboard input!

Colin Brown
PyNZ

Jul 18 '05 #3

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

Similar topics

3
by: Olivier Hoarau | last post by:
Hello, I have build a client/server application with the socket module. The server mades UDP broadcasting and the client only reads UDP broadcast messages. All work fine. Now I want to use for...
3
by: Ergin Aytac | last post by:
I'm trying to run a script written in python and have some socket connection problems. I cutted the origin script (more than 1000 lines) so it is only the part of the connection and there is no...
0
by: Adil Hasan | last post by:
Hello Fred, I just ran across your question. I think that the following code will work: ----- SERVER CODE ------ import SocketServer import time class...
12
by: Paul Rubin | last post by:
Let's say you have a SocketServer with the threading mix-in and you run serve_forever on it. How can you shut it down, or rather, how can it even shut itself down? Even if you use a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.