-
Questions about Tcp TIME_WAIT
if a socket between the client and the server is closed (the tcp connection is closed), the client will not be able to re-establish an identical socket in a short period of time (two minutes according to the book). So my understanding is: join me to conn...
-
Port communication, ingress port is bound, is there any restriction on exit?
give an example,
the local client accesses the remote mysql server 3306 port. requires access to remote port 3306.
my question is: does the network of the local client need to apply? Local access to remote port 3306, which port is used by the local...
-
How does a go TCP connect to a http service to get a response?
goal: golang service, prepare to get banner information of ip:port. if ip:port is http, you can get http response, if it is ssh service, you can get ssh service output information. Such as version information.
pre-condition: the corresponding tcpAddr...
-
When was the http status code sent?
what I already know is that the http status code is sent to the client after the server sends the data. for a http request, the client sends the HTTP request after the three-way handshake (TCP), and the server sends TCP fragments in response to the req...
-
How to understand that the TCP/IP protocol is data flow oriented and the UDP protocol is Datagram oriented?
how does RT, understand that the TCP IP protocol is data flow oriented and the UDP protocol is Datagram oriented? ...
-
Tcp programming under linux
just learned tcp programming under linux, and just successfully implemented a simple backfire client-server.
but there is a question: when the client finishes sending the file, it needs close (fd), so how can I tell the server that you can also close ...
-
Can you see the possible cause of the problem from the wireshark tcp package of the rigid application?
there is an online Python application that occasionally deadlocks, that is, the process is present, but the call to the Api interface prompts .
curl: (56) Recv failure: Connection reset by peer
grab the tcp package locally via wireshark
"TCP"...
-
Is there a TCP package grabbing / sending tool that is as functional and easy to use as Fiddler?
is there a TCP package grabbing sending tool that is as functional and easy to use as Fiddler? ...
-
Tcp communication under linux-how to realize the communication between two clients, and the server does not forward messages.
has just realized the communication between two clients (tcp protocol under linux). The implementation idea is very simple, that is, one client sends a message, and the server first read to and then write to another client, and that s it.
after caref...
-
How to close the socket correctly by tcp programming under linux?
suppose there is a piece of code on the server side with two threads open, one to process the client connection and one to read the message sent by the client.
m_fd = socket(AF_INET, SOCK_STREAM, 0);
bind(...);
listen(...);
pid_t pid;
while (1)
{
...
-
What causes the error of TCP retransmission packet?
opened a tun network card to grab the package
client http sends post
375 bytes seq: 148255172 ack:11241 bytes seq: 148255491 ack:1reply1s1504 bytes
payload 48 54 54 50
(375 bytes)payload50 4f 53 53
Why is it truncated
...
-
How does C judge the tcp socket is closed? on the other end?
< H1 > current solution < H1 >
server
bool is_server_disconnected(int client_socket)
{
set_flag(client_socket, O_NONBLOCK);
char buffer[10];
int length = recv(client_socket, buffer, 10, 0);
clr_flag(client_socket, O_NONBLOCK)...
-
Under the tcp protocol, when the sender sends multiple message segments at the same time, how does the ack of the sender be determined, and how does the seq determine when the receiver confirms the connection?
how is the ack determined when the sender sends multiple message segments at the same time under the tcp protocol, and how does the seq determine when the receiver confirms the connection ...
-
What is the question about the source port and destination port under the tcp connection?
suppose I now have a process that prints "hello world " in a loop. From a process perspective alone, will it be assigned a port number when I start it?
in other words, is the port number only available when I get the process bound, or is it randomly ...
-
About the problem that flask provides web services and links to socket separately at the same time!
< H1 > python rookies say hello to all the bosses! Ask the boss questions! < H1 >
< H1 > functions I need to implement < H1 >
1. Using the flask framework to provide web services is simply a few keystrokes and then some indication of status! Access ...
-
Close_wait time problem of tcp
in some materials, I have seen that the time of close_wait can be infinitely long, so if you want to modify the time of close_wait, which file is that parameter in? ...
-
The problem of unpacking and gluing netty packets: why does the server need data assembly when receiving tcp requests? Or what kind of data needs to be assembled?
there is a section of demo, in the user-guide of netty s official website that is not very clear. original text: netty4.x user Guide Chinese: netty4.x user Guide the data packet sent by the client, The server receives it in the form of a stream,...
-
A port can only be used by one program, so why can multiple client in tcp connect to the same port of a server?
such as the question, is there something wrong with my understanding? Ask for advice. ...
-
Write on a closed net.Conn but returned nil error
Let s start with a simple piece of code:
...
-
The Timing display of http requests in the system is inconsistent with the Timing displayed by individual requests.
1. When you make a request in the system, the Timing you see is the following result. Only 3 requests are concurrent at the same time. from the figure below, the request is suspended. Waiting and Content Download have a total of 134ms, which is very fa...