Questions tagged [half-close]

8 questions
7
votes
1 answer

Does HTTP/1.1 allow delimiting end of request by half-closing the connection?

RFC2616 part 4.4 specifies how the end of the message is determined in HTTP/1.1. Item 5 in that section specifies that the server may close the connection to indicate the response is finished. It also goes on to say that delimiting the request like…
Roman Starkov
  • 59,298
  • 38
  • 251
  • 324
4
votes
1 answer

How does a TCP endpoint know whether the other endpoint has closed both halves of the connection or only one?

Consider a TCP connection established between two TCP endpoints, where one of them calls either: close(): Here, no further read or write is permitted. shutdown(fd, SHUT_WR): This converts the full duplex connection to simplex, where the endpoint…
Vivek Gupta
  • 213
  • 4
  • 10
2
votes
2 answers

socket: constantly getting POLLHUP on half-close

I wrote a socket server, running on linux, but this is probably not linux specifix. I use poll() to check the state of the clients. My clients do an active (half-)close after sending the request. The server constantly getting POLLHUP and POLLERR,…
Karoly Horvath
  • 94,607
  • 11
  • 117
  • 176
1
vote
1 answer

questions about tcp half-close

please see the following pic: the client initiate a half-close request and get acknowledged,if i dont misunderstand what half-close means,the client should not be able to send any data afterwards, then how can it send back an ACK later.
Tracy
  • 1,988
  • 5
  • 25
  • 36
1
vote
0 answers

Changing IP while a connection is alive (half open connections)

In my project, there is a 2 sided connection based on a TCP protocol. One waits for information (PC), and the other one sends it (phone). I have noticed that if I change the phone's WiFi connection (IP address) while a connection between the devices…
Daniel Reyhanian
  • 579
  • 4
  • 26
0
votes
0 answers

Is there any way to know if the 4-way close handshake is complete in Netty?

I am developing netty tcp client service. My Question After my service calls channel.close(), is there any way to know if server has also called channel.close()? In other words, Is there any way to know if the 4-way close handshake is…
Jsing
  • 35
  • 1
  • 1
  • 5
0
votes
1 answer

Infinite Loop i don't know why ( DichotomySearch )

so i'm working on a program that search a term by dichotomy. It makes an infinite loop and i don't know why but i know where ( in the elif/else ). So here is my code : def RechercheDichotomique(liste,x):# Algo pour recherche…
user7091167
0
votes
1 answer

Need help writing to a socket after receiving a shutdown on the read side

I am trying to implement an HTTP proxy in C# as part of an overall business application I'm working on, and have run into the following conundrum. Part of the HTTP standard specifies that the browser may issue a socket shutdown…
Kevin Smathers
  • 111
  • 1
  • 3