Python module which simplifies the task of writing network servers.
Questions tagged [socketserver]
385 questions
1
vote
2 answers
Java Socket know when request to gmail
I'm trying to create an application event (java) that would raise as soon as the machine gets connected to gmail onto the login page (https://www.google.com/accounts/), so I'm trying to build a Socket that would listen to this particular…

KitAndKat
- 953
- 3
- 14
- 29
1
vote
0 answers
python,SocketServer : How to use the main thread timeout method in a multi-threaded scenario
my request is close main thread after more than 2 min.i called serve_forever() ,but don't know how to close the main thread.my codes:
import SocketServer,socket
import threading,time,re
last_request_time = 0
class…

Mr.shen
- 57
- 4
1
vote
0 answers
Java SocketServer Connected to a AccessGuard 1000 Solution
I have the following issue connecting to a AccessGard (newnet) solution that forwards TPC messages to my application from a POS.
Basically the AG automatically connects from an ip "X.X.X.2" to my pooled server but it never sends any data.
When…

Oscar Gomez Marco
- 11
- 1
1
vote
0 answers
High CPU Utilization when using ThreadingTCPServer from SocketServer Module
I wanted to create a simple HTTP Server which can hanlde about 1000 TPS and came across the SocketServer module in python. The HTTP server is almost giving the expected transactions per second but it almost using 90% of the CPU all the time which is…

Jerry
- 60
- 1
- 5
1
vote
0 answers
Python Socket Server: Processing Input
I'm looking to control Phillips hue lights from a piece of software that's not capable of sending RESTful messages so I'm attempting to write a bit of middleware that will interpret at TCP message and pass on the appropriate request to the bulbs.…

RichPorter
- 87
- 8
1
vote
1 answer
Python Logging - dictConfig - logging destination for sub modules
I have a python logging server, two test applications and one shared module (submod.py) I want both applications to be able to send log events to the server and have the server decide how to store them into separate log files. This is fairly easily…

Chex
- 25
- 6
1
vote
1 answer
Open source Multiplayer Socket Server for Virtual World
Are there any open source multiplayer socket servers that can be used for virtual world development?
I've been looking at SmartFoxServer & Electroserver, but there very pricey.

Daniel
- 3,017
- 12
- 44
- 61
1
vote
1 answer
Seeing multiple servers on a network
I am busy with a project where I'm creating a basic client/server chat application which allows a user to create a server on their local network on a port of their choice and then have multiple clients connect to that server by specifying the IP and…

SP de Wit
- 215
- 1
- 9
1
vote
1 answer
Is python3.x library socketserver non-blocking?
I'm reading socketserver.py code, and I've found that it is using selectors.PollSelector if available. But there is no setblocking(0) on master socket or tcp connection socket. Can somebody explain why are sockets set to block as it is default…

tomboKombo
- 11
- 1
- 3
1
vote
0 answers
Is Spring's ThreadPoolTaskExecutor blocking something?
We are using the ThreadPoolTaskExecutor within Spring (inside of Tomcat) to launch a concurrent server which listens on a port (3001).
Our code looks a bit like:
....
ServerSocket listener = new ServerSocket(port);
Socket…

Anthony
- 167
- 2
- 16
1
vote
2 answers
UNIX C BSD Sockets TCP_KEEPALIVE how to check if socket is marked as broken
I have been trying to implement the TCP_KEEPALIVE parameter for a C server socket and I can't seem to figure out how to check if the socket is marked as broken. I followed this tutorial for configuring the socket to do the keep alive but it says…

rplankenhorn
- 2,075
- 2
- 22
- 32
1
vote
0 answers
Restarting connection with python socketserver
I am creating a server with Python 3 socketserver and I have an issue while trying to restart the connection. I want to be able to close it, read configuration from a file and start again, however, I am running into the Address already in use…

gonczor
- 3,994
- 1
- 21
- 46
1
vote
1 answer
SocketServer - how to identify clients
I'm working on a very simple server. This server should be able to do some predefined commands requested by clients.
I would like to store information about connected clients separately. For example, I want server to add a number of the particular…

Milano
- 18,048
- 37
- 153
- 353
1
vote
0 answers
SocketServer module and SQLite
So I have to make a small website for internal use at work (my work is not related to programming). And since our office is about 200 people I thought that I'd use the SocketServer module with SQLite database and this way I am going to learn some…

Martin Spasov
- 315
- 3
- 7
- 23
1
vote
1 answer
Python: SocketServer has no socket
I want to use a Python socketserver to wait for a message, but to time out periodically and do some other processing. As far as I can tell, the following code should work, but the call to handle_request() throws an AttributeError exception,…

ROBERT RICHARDSON
- 2,077
- 4
- 24
- 57