Tagged Questions
3
votes
0answers
710 views
Python SSL communication hangs on read, then issues an error 54 - connection reset by peer
I'm making a web services call to a Microsoft CRM web service using Python/suds/python-ntlm, and my call to the service is blocking on an SSL read. The CRM service provider provides both a testing and ...
2
votes
0answers
54 views
Split Video Files and Make them individually playable
I am newbie to this python. I split webm video file into chunks, but i couldn't able to make them individually playable using python program.But it plays after I join the chunks to a single file. I ...
2
votes
0answers
167 views
Windows drops connection when new data received to socket
I've made a service with twisted. Everything worked fine until I've moved to a new server. Now my service drops most of connections when new data is received.
The old server had 32 bit Windows XP ...
2
votes
0answers
42 views
Socket reads echo'ing back old sends?
I'm trying to do a very simple read/write to an embedded device using sockets in Python. For some reason, the sock.recv() command is returning my sent string instead of my expected return string. Here ...
2
votes
0answers
105 views
Python socket server - Not receiving Adobe AIR client data on Windows
I have setup a socketserver in Python (my first program in Python) using the following code:
class setupServer(threading.Thread):
def __init__(self, host, port):
threading.Thread.__init__(self)
...
2
votes
0answers
247 views
Python Socket bound on 0.0.0.0, can't connect via 127.0.0.1
I have a Windows XPSP3 machine running a Python XMLRPCServer bound to 0.0.0.0:8000, but when I try to connect via an httplib HTTPConnection on address 127.0.0.1:8000, I get a socket.connection error, ...
2
votes
0answers
363 views
Restarting socket connection following client disconnect
I have this code which listens/sends from/to a Scratch program with remote sensor connections enabled (e.g communicates by Port 42001 on 127.0.0.1)
# This code is copyright Simon Walters under GPL v2
...
2
votes
0answers
222 views
asyncore socket doesn't close properly
I've written (mostly copied) a very simple python script to function as a Caller ID addon for xbmc. It works as expected except for closing the socket. I've confirmed that xbmc.abortRequested (a ...
2
votes
0answers
4k views
Python socket.error: [Errno 111] Connection refused
I am trying to write a program for file transfer using sockets. The server end of the code is running fine. However, in the client side I get the following error
Traceback (most recent call last):
...
2
votes
0answers
443 views
Multithreaded Python socket server CPU usage spirals out of control
My Situation:
I have a python server that does the following:
Listens on port 500 (for firewall reasons), and everytime it receives a connection, spawns a thread to handle the connection. Each ...
2
votes
0answers
270 views
rpcbind authorization problems
I am using rpcbind (SunRPC) on Arch linux and the Python rpc.py (which use standard python socket module) interface for comunication with it. Every time I try to send a request for registration or ...
1
vote
0answers
21 views
Python 3.3 Webserver restarting problems
I have made a simple webserver in python, and had some problems with it before as described here: Python (3.3) Webserver script with an interesting error
In that question, the answer was to use a ...
1
vote
0answers
25 views
Error when running server using the same port?
In the code;
import socket
HOST = '' #another short form for INADDDR_ANY, all available interfaces
PORT = 50010 #arbitrary non-priviledged port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
...
1
vote
0answers
36 views
Measuring socket to socket latency in Python
I'm using the Python socket library to send a message to another server and measure the roundtrip latency. I'm new networks so it's very basic, just using the send-receive examples given in the ...
1
vote
0answers
51 views
PYTHON - socket “[Errorno 105] No buffer space available” after 10 hours execution
I implemented a code that sends pings to different destinations in a continous way, but, after a 10 hours execution cycle, the socket I'm using is affected by some sort of aging that makes the ...