pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wen Yi <896634148@qq.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: [Question]What will happen if the server active close the connection?
Date: Mon, 5 Jun 2023 10:18:11 +0800
Message-ID: <tencent_4D201BE356DCC8A4375C68EBD057774D6709@qq.com> (raw)

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

view thread (2+ messages)  latest in thread

Message-ID: <tencent_4D201BE356DCC8A4375C68EBD057774D6709@qq.com>
Permalink:  ../tencent_4D201BE356DCC8A4375C68EBD057774D6709@qq.com/
Also on:    postgresql.org/message-id/tencent_4D201BE356DCC8A4375C68EBD057774D6709@qq.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: 896634148@qq.com
  Subject: Re: [Question]What will happen if the server active close the connection?
  In-Reply-To: <tencent_4D201BE356DCC8A4375C68EBD057774D6709@qq.com>
  References: <tencent_4D201BE356DCC8A4375C68EBD057774D6709@qq.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox