Unix Technical Forum

Re: [PATCHES] Re: [BUGS] BUG #2724: Could not checkconnection status with "ssl=on"

This is a discussion on Re: [PATCHES] Re: [BUGS] BUG #2724: Could not checkconnection status with "ssl=on" within the pgsql Hackers forums, part of the PostgreSQL category; --> Tom Lane wrote: > Bruce Momjian <bruce@momjian.us> writes: > > Tom Lane wrote: > >> Bruce Momjian <bruce@momjian.us> writes: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 08:04 AM
Bruce Momjian
 
Posts: n/a
Default Re: [PATCHES] Re: [BUGS] BUG #2724: Could not checkconnection status with "ssl=on"

Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Tom Lane wrote:
> >> Bruce Momjian <bruce@momjian.us> writes:
> >>> ! if (SOCK_ERRNO != ECONNRESET)
> >>> ! SSL_shutdown(conn->ssl);
> >>
> >> Ummm ... what is this supposed to fix exactly, and what are the odds

>
> > I think the user was getting SIGPIPE on SSL_shutdown() of a closed
> > connection.

>
> It seems moderately improbable that by the time control arrives here,
> errno still has anything to do with the last operation on the SSL
> socket.


Yep, I was wondering that too. It is called SOCK_ERRNO, but in fact it
is just errno on Unix.

I generated the patch just to try to give an example of what the user
might be suggesting. Let's see if anyone wants to research this more.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:40 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com