From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 26 Feb 2012 19:58:02 +0400 From: Sergey Vlasov To: community@lists.altlinux.org Message-ID: <20120226155802.GB6389@atlas.home> Mail-Followup-To: community@lists.altlinux.org References: <201202221301.45326.cas@altlinux.ru> <4F44B31D.3090909@gmail.com> <4F4811AD.4080104@tangramltd.com> <4F491C75.5080903@tangramltd.com> <20120226084027.GA6389@atlas.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4SFOXa2GPu3tIq4H" Content-Disposition: inline In-Reply-To: Subject: Re: [Comm] =?koi8-r?b?W3A2XSDUxdPUydLP18HOycUgzs/X2cggZnJlZXJkcCDJ?= =?koi8-r?b?IHJlbW1pbmE=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2012 15:58:06 -0000 Archived-At: List-Archive: List-Post: --4SFOXa2GPu3tIq4H Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 26, 2012 at 02:21:59PM +0100, vx8400 wrote: > =F3=D0=C1=D3=C9=C2=CF =DA=C1 =DA=C1=CD=C5=DE=C1=CE=C9=C5 =D0=CF read/errn= o. =F0=D2=CF=D7=C5=D2=CB=C1 =C4=C5=CC=C1=CC=C1=D3=D8 =C4=CC=D1 =CB=CF=CE=CB= =D2=C5=D4=CE=CF=C7=CF > =D3=CC=D5=DE=C1=D1, =DE=D4=CF=C2=D9 =C4=C1=D4=D8 remmina =C4=CF=CA=D4=C9 = =C4=CF =D3=D7=CF=C5=CA =CF=DB=C9=C2=CB=C9 =D7 glib/gtk. > =FE=D4=CF=C2=D9 =CE=C5 =CD=CF=D2=CF=DE=C9=D4=D8=D3=D1 =D3 read(tls->ssl->= ...) =C9 errno: >=20 > boolean tls_disconnect(rdpTls* tls) > { > uint8 _buf_[8]; > if (tls_read(tls,_buf_,0) < 0) > fprintf(stderr,"ERROR: connection is already dead, won't call > SSL_shutdown(), returning true despite this\n"); > else > SSL_shutdown(tls->ssl); > return true; > } =F7=D3=A3 =D2=C1=D7=CE=CF =D4=C1=CD race - =D0=C1=CB=C5=D4 =D3 =C4=D2=D5=C7= =CF=CA =D3=D4=CF=D2=CF=CE=D9 =CD=CF=D6=C5=D4 =C4=CF=CA=D4=C9 =D5=D6=C5 =D0= =CF=D3=CC=C5 =DA=C1=D7=C5=D2=DB=C5=CE=C9=D1 tls_read(), =C9 =D0=CF=CC=D5=DE=C9=D4=D3=D1 = =D4=CF=D4 =D6=C5 SIGPIPE. > > =E8=CF=D4=D1 =D7 =CC=C0=C2=CF=CD =D3=CC=D5=DE=C1=C5 =D7=D3=A3 =DC=D4=CF= =CE=C5 =D0=CF=CD=CF=D6=C5=D4, =D0=CF=D3=CB=CF=CC=D8=CB=D5 =DA=C1=CB=D2=D9= =D4=C9=C5 =D3=CF=C5=C4=C9=CE=C5=CE=C9=D1 > > =D3=CF =D3=D4=CF=D2=CF=CE=D9 =D3=C5=D2=D7=C5=D2=C1 =CD=CF=D6=C5=D4 =D0= =D2=CF=C9=DA=CF=CA=D4=C9 =D0=CF=D3=CC=C5 =D0=D2=CF=D7=C5=D2=CB=C9, =CE=CF = =D0=C5=D2=C5=C4 =D7=D9=DA=CF=D7=CF=CD > > SSL_shutdown(). =9A=E5=C4=C9=CE=D3=D4=D7=C5=CE=CE=D9=CA =CE=C1=C4=A3=D6= =CE=D9=CA =D3=D0=CF=D3=CF=C2 =C2=CF=D2=D8=C2=D9 =D3 =D0=D2=CF=C2=CC=C5=CD= =CF=CA - > > =C9=C7=CE=CF=D2=C9=D2=CF=D7=C1=D4=D8 =D3=C9=C7=CE=C1=CC SIGPIPE =C9 =CF= =C2=D2=C1=C2=C1=D4=D9=D7=C1=D4=D8 =CF=DB=C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E=C1 =D2=C1=DA=CC=C9=DE=CE=D9=C5 =EF=F3= (=D7=C9=C4=C9=CD=CF, =D0=CF=DC=D4=CF=CD=D5 =D7 OpenSSL =CE=C9 =CF=C4=C9=CE =C9=DA =CE=C9=C8 =C9 = =CE=C5 =D0=D2=C9=CD=C5=CE=D1=C5=D4=D3=D1): http://stackoverflow.com/questions/108183/how-to-prevent-sigpipes-or-handle= -them-properly =F7 glib2 =D4=CF=D6=C5 =CE=C5 =D3=D4=C1=CC=C9 =DA=C1=CD=CF=D2=C1=DE=C9=D7= =C1=D4=D8=D3=D1 =D3 =C8=C9=D4=D2=D9=CD=C9 =D3=D0=CF=D3=CF=C2=C1=CD=C9, =C9 = =D0=D2=CF=D3=D4=CF =D7=D3=C1=C4=C9=CC=C9 =C9=C7=CE=CF=D2=C9=D2=CF=D7=C1=CE=C9=C5 SIGPIPE =D7 = =C9=CE=C9=C3=C9=C1=CC=C9=DA=C1=C3=C9=C0 GSocket, =C8=CF=D4=D1 =D0=CF=C4=CF= =C2=CE=D9=C5 =C7=CC=CF=C2=C1=CC=D8=CE=D9=C5 =C9=DA=CD=C5=CE=C5=CE=C9=D1 =D7 =C2=C9=C2=CC= =C9=CF=D4=C5=CB=C1=C8 =C9 =D3=DE=C9=D4=C1=C0=D4=D3=D1 =C4=D5=D2=CE=D9=CD = =D4=CF=CE=CF=CD: http://git.altlinux.org/srpms/g/glib2.git?p=3Dglib2.git;a=3Dblob;f=3Dglib/g= io/gsocket.c;h=3Da03be77768e9d926cd31e9eafd39d5a4374d1e2f;hb=3DHEAD#l110 http://git.altlinux.org/srpms/g/glib2.git?p=3Dglib2.git;a=3Dblob;f=3Dglib/g= io/gsocket.c;h=3Da03be77768e9d926cd31e9eafd39d5a4374d1e2f;hb=3DHEAD#l704 --4SFOXa2GPu3tIq4H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9KVooACgkQW82GfkQfsqKXjwCbBH0sy6FTWy5kNfpWgm267Eyv PukAn0kmKhRal48R2VT62khl3BMF3MFs =m0Vn -----END PGP SIGNATURE----- --4SFOXa2GPu3tIq4H--