Linked Questions

11 votes
2 answers
13k views

I'm stuck on a problem in a C program on Linux. I know that when a processes is forked the child process inherits some things from the parent, including open file descriptors. The problem is that I'...
user1995143's user avatar
8 votes
4 answers
36k views

I need to implement a very simple web-server-like app in Python which would perform basic HTTP requests and responses and display very basic output on the web page. I am not too concerned about ...
antonpug's user avatar
  • 14.4k
2 votes
3 answers
12k views

I'm trying to figure out if this is normal. Because without errors, a connection should be terminated by: FIN -> <- ACK <- FIN ACK -> I get this at the end of a TCP connection (over SSL, ...
Senne's user avatar
  • 355
3 votes
2 answers
14k views

I've got a TCP socket which reads data. When an error occurs when reading the data, I return an undef (NULL) value. Errors can be caused by badly formatted messages or broken sockets. Can someone tell ...
Gearoid Murphy's user avatar
5 votes
6 answers
4k views

I have an asynchronous application executing several threads doing operations over sockets where operations are scheduled and then executed asynchronously. I'm trying to avoid a situation when once ...
Arkaitz Jimenez's user avatar
7 votes
5 answers
2k views

Overview I am using urlopen from the Python 2.7.1 urllib2 package to do a HTTP POST form a Windows XP machine to a remote Apache webserver (for instance the built-in web sharing of Mac OS X). The ...
153957's user avatar
  • 428
3 votes
2 answers
8k views

I am currently working on a server + client combo on python and I'm using TCP sockets. From networking classes I know, that TCP connection should be closed step by step, first one side sends the ...
fulaphex's user avatar
  • 3,339
2 votes
2 answers
1k views

as background I've got an embedded device that talks to a third party server over IP. The code in the third party server is unlikely to change. In a recent release I changed the ip disconnect function ...
Patrick's user avatar
  • 8,338
1 vote
2 answers
3k views

I have this piece of code here: import socket socket.close() I get a warning that socket.close() is missing the 'fd' parameter. What integer should I fill in for general usage, and what do the ...
Macintosh Fan's user avatar
5 votes
2 answers
610 views

I am a developer on an open source project and I have been having some problems with the server thinking it has answered a socket completely (meaning it has either sent a reply or closed it's end in ...
dbeer's user avatar
  • 7,273
1 vote
3 answers
1k views

I am trying to build a simple server-client model to do the file transfer task. My server.py and client.py look like this: <Server.py> import socket s = socket.socket() host = socket....
Haoran Bai's user avatar
0 votes
1 answer
1k views

I have a program which runs on 2 threads. The main thread is for its own work and the other thread keeps calling recv() on a UDP socket. Basically, the code structure looks like this: done = False ...
Mike Pham's user avatar
  • 497
2 votes
1 answer
723 views

I'm pretty new to socket programming. Our application uses sockets to communicate with a device our company manufactures. We have a problem with the socket sometimes taking a long time to close. ...
Tony Vitabile's user avatar
0 votes
1 answer
389 views

On the basis of shutdown vs close I have known the difference between shutdown and close. But which will choose if select timeout in socket, the client will close or shutdown(sock, SHUT_WR). I try to ...
the monkey of BIT's user avatar
1 vote
1 answer
383 views

Not sure if I have myself a problem with a python script I'm using. Basically, it spawns threads, each creating a tcp connections. Well the script finishes, i even check if any threads are still ...
Ichabod Crane's user avatar

15 30 50 per page