[Question]What will happen if the server active close the connection?

From: Wen Yi <896634148(at)qq(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: [Question]What will happen if the server active close the connection?
Date: 2023-06-05 02:18:11
Message-ID: tencent_4D201BE356DCC8A4375C68EBD057774D6709@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi team,
when I study the tcp connection, I found that if the server active close the connection, the server will send a fin package to the client and the client will reply a ack package.
As this:

Server ----&gt;(FIN) Client
Server <----(ACK) Client

My question is, in so many articles, the following step is, the client will write some data(send some data) to the server and then cause the signal SIGNALPIPE.
But what will happen if the client died?(Example: was killed by the user)

Can someone provide some advice?
Thanks in advance!

Yours,
Wen Yi

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Rowley 2023-06-05 04:53:54 Re: Pg 16: will pg_dump & pg_restore be faster?
Previous Message Wen Yi 2023-06-05 02:11:31 Re: "pgsql-zh-general" can't send chinese mail.