socketserver Questions

24

Solved

I'm trying to create a custom TCP stack using Python 2.6.5 on Windows 7 to serve valid http page requests on port 80 locally. But, I've run into a snag with what seems like Windows 7 tightened up s...
Scotney asked 6/5, 2010 at 6:12

10

I know that socketserver has a method shutdown() which causes server to shut down but this only works in multiple threads application since the shutdown needs to be called from different thread tha...
Irreligion asked 10/4, 2012 at 9:14

5

I'm trying to create a simple client/server application and thus I am experimenting with sockets in PHP. Now I have a simple client in C# which connects to the server well, but i can only connect o...
Lulu asked 3/11, 2012 at 11:41

5

Solved

I would like to pass my database connection to the EchoHandler class, however I can't figure out how to do that or access the EchoHandler class at all. class EchoHandler(SocketServer.StreamReque...
Mezuzah asked 29/7, 2011 at 15:41

2

Solved

I coded a server program using python. I'm trying to get a string but i got only a character! How can I receive a string? def handleclient(connection): while True: rec = connection.recv(200) ...
Zinn asked 5/11, 2012 at 9:57

4

Solved

I am working on a "simple" server using a threaded SocketServer in Python 3. I am going through a lot of trouble implementing shutdown for this. The code below I found on the internet and shutdown...
Absorption asked 15/1, 2018 at 15:5

1

I am building an HTTPS proxy which can forward all SSL traffic. It is called a transparent tunneling. Anyway, I have a problem with Python's socketserver. When I called rfile.read(), it takes a ver...
July asked 9/4, 2015 at 4:48

1

Solved

I am going to create web server which could receive a lot of connections. These 10000 connected users will send to server numbers and server will return these squared numbers to users back. 10000 c...
Bimetallic asked 20/10, 2016 at 15:26

4

Solved

Well, I'm trying to build a small python prgram with a SocketServer that is supposed to send messages it receives to all connected clients. I'm stuck, I don't know how to store clients on the serve...
Egyptology asked 8/9, 2010 at 17:1

0

i'm coding a Python Server (with SocketServer) for my Raspberry Pi. This server wait for incoming clients and activate any components like Relay and leds from that remote connection. This is my fir...
Parsimonious asked 29/3, 2015 at 2:31

3

Solved

While searching in the Linux manual page, what I have found about the format of send and recv in socket is like below: For send, ssize_t send(int sockfd, const void *buf, size_t len, int flags); ...
Adagietto asked 26/6, 2014 at 12:28

3

Solved

I'm getting started with Java's Socket and SocketServer classes. As mentioned above I would like to know which protocol (or however it is called) the Socket classes are using to communicate by def...
Spall asked 10/3, 2014 at 20:35

3

We are experiencing a problem where our incoming client socket connections to our socket server are being denied when a relatively small number of nodes (16 to 24, but we will need to handle more i...
Deiform asked 4/7, 2013 at 19:28

3

I have a Server based on ThreadingTCPServer. Now Ii want to add SSL Support to that Server. Without SSL it works fine but with SSLv3 I cant connect a Client to the Server, it always throws an excep...
Carat asked 20/12, 2011 at 22:25

1

I just encountered a weird issue about bottle on windows. When I tested the my bottle codes, I found that it could run multiple same programs on WINDOWS using same address and port. But when you tr...
Zildjian asked 11/6, 2013 at 13:9

1

Solved

I've been looking at the documentation for SocketServer. I copied the TCP server code from the documentation and it runs fine. However, I noticed that whenever I ctrl-c'ed out of the program in my ...
Incognizant asked 8/5, 2013 at 5:47

2

Good day! I was writen simple server: class SingleTCPHandler(SocketServer.BaseRequestHandler): def handle(self): data = self.request.recv(1024) self.request.close() class SimpleServer(Socket...
Haldas asked 18/8, 2011 at 9:46

2

Solved

I was trying to make an http proxy using BaseHttpServer which is based on SocketServer which got 2 asynchronous Mixins (ThreadingMixIn and ForkingMixIn) the problem with those two that they work o...

1

Solved

Short Question Using my examples below, is there a Pythonic way to share my_object's actual instance with with the BaseRequestHandler class? Background By definition, the BaseRequestHandler class...
English asked 18/12, 2011 at 1:17

1

Solved

Background I have a simple socket server setup that I am trying to allow simultaneous connections to and echo back the data. The client side launches several threads each making its own connection ...
Dorkas asked 17/12, 2011 at 18:16

1

How can I write unit tests for a socketserver request handler? I have tried to use the following code but have encountered a problem: import socketserver, unittest, threading class TestServer(soc...
Irizarry asked 11/10, 2011 at 2:59

2

Solved

I'm learning how to use sockets in python, and quite often when my program crashes or I Ctrl+C the server socket somehow stays listening on the port. This obviously stops the program from listening...
Presidio asked 14/10, 2011 at 11:11

1

Solved

There are three overloads for constructing a TcpListener: public TcpListener(int port); (obsolete) public TcpListener(IPEndPoint localEP) public TcpListener(IPAddress localaddr, int port) i wan...
Seismo asked 30/8, 2011 at 2:29

1

thanks for the interesting responses thus far. In light of said responses I have changed my question a bit. guess what I really need to know is, is socketserver as opposed to the straight-up sock...
Driftwood asked 30/6, 2011 at 19:47

1

Solved

I'm a newbie in network programming, so please forgive me if this is a dumb question :) I created 1 client and 1 SocketServer.ThreadingMixIn server on Ubuntu 10.04.2 using Python2.7, but it seems l...
Oto asked 4/6, 2011 at 15:21

© 2022 - 2025 — McMap. All rights reserved.