From Rainer Toebbicke: fix two problems:
From Rainer Toebbicke:
fix two problems:

1. when the remote socket goes away violently, the SSL_peak would not return
   SSL_ERROR_ZERO_RETURN as in the case of a orderly shutdown but more
   likely SSL_ERROR_SYSCALL. Failure to notice this will result in the
   read() always returning zero length but the socket never closed (and
   hence the connection never recovered but the program sent into a loop).

2. a normal shutdown of an SSL connection results in a "close notify"
   being sent. I don't think that it's standard what happens if ever
   the socket is already no longer connected at this moment, however
   on Linux you get SIGPIPE which kills the process. I suggest to set
   SSL_set_quiet_shutdown in that case as the socket is going to be
   closed on both sides anyway and there isn't anything to recover.


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@42270 27541ba8-7e3a-0410-8455-c3a389f83636

evgeny-boger/root,buuck/root,krafczyk/root,omazapa/root-old,Duraznos/root,bbockelm/root,simonpf/root,veprbl/root,krafczyk/root,sbinet/cxx-root,krafczyk/root,arch1tect0r/root,buuck/root,vukasinmilosevic/root,mattkretz/root,esakellari/my_root_for_test,perovic/root,omazapa/root-old,zzxuanyuan/root-compressor-dummy,mattkretz/root,Duraznos/root,arch1tect0r/root,veprbl/root,bbockelm/root,gganis/root,CristinaCristescu/root,Duraznos/root,0x0all/ROOT,Y--/root,veprbl/root,vukasinmilosevic/root,sawenzel/root,krafczyk/root,sbinet/cxx-root,abhinavmoudgil95/root,thomaskeck/root,pspe/root,omazapa/root,esakellari/root,simonpf/root,CristinaCristescu/root,krafczyk/root,agarciamontoro/root,bbockelm/root,Duraznos/root,strykejern/TTreeReader,omazapa/root-old,zzxuanyuan/root-compressor-dummy,mattkretz/root,georgtroska/root,perovic/root,root-mirror/root,mattkretz/root,Duraznos/root,lgiommi/root,nilqed/root,bbockelm/root,mkret2/root,mattkretz/root,krafczyk/root,abhinavmoudgil95/root,cxx-hep/root-cern,Y--/root,esakellari/my_root_for_test,mkret2/root,omazapa/root-old,gbitzes/root,satyarth934/root,evgeny-boger/root,CristinaCristescu/root,agarciamontoro/root,kirbyherm/root-r-tools,dfunke/root,lgiommi/root,kirbyherm/root-r-tools,Dr15Jones/root,davidlt/root,krafczyk/root,evgeny-boger/root,gganis/root,esakellari/root,jrtomps/root,thomaskeck/root,vukasinmilosevic/root,pspe/root,gbitzes/root,BerserkerTroll/root,sbinet/cxx-root,satyarth934/root,evgeny-boger/root,cxx-hep/root-cern,jrtomps/root,jrtomps/root,kirbyherm/root-r-tools,root-mirror/root,beniz/root,veprbl/root,sirinath/root,BerserkerTroll/root,mattkretz/root,abhinavmoudgil95/root,omazapa/root-old,olifre/root,pspe/root,arch1tect0r/root,vukasinmilosevic/root,abhinavmoudgil95/root,0x0all/ROOT,davidlt/root,sbinet/cxx-root,sbinet/cxx-root,smarinac/root,evgeny-boger/root,smarinac/root,zzxuanyuan/root,Dr15Jones/root,buuck/root,omazapa/root,buuck/root,gbitzes/root,abhinavmoudgil95/root,mattkretz/root,alexschlueter/cern-root,mkret2/root,evgeny-boger/root,gganis/root,krafczyk/root,CristinaCristescu/root,CristinaCristescu/root,gbitzes/root,karies/root,tc3t/qoot,sbinet/cxx-root,lgiommi/root,pspe/root,ffurano/root5,karies/root,omazapa/root,omazapa/root,gganis/root,perovic/root,tc3t/qoot,evgeny-boger/root,Dr15Jones/root,dfunke/root,beniz/root,zzxuanyuan/root,Dr15Jones/root,gganis/root,BerserkerTroll/root,BerserkerTroll/root,nilqed/root,olifre/root,esakellari/root,sbinet/cxx-root,Dr15Jones/root,georgtroska/root,dfunke/root,smarinac/root,smarinac/root,Duraznos/root,lgiommi/root,esakellari/my_root_for_test,lgiommi/root,esakellari/my_root_for_test,Y--/root,root-mirror/root,gbitzes/root,omazapa/root,Y--/root,tc3t/qoot,bbockelm/root,beniz/root,agarciamontoro/root,mkret2/root,lgiommi/root,esakellari/root,zzxuanyuan/root,thomaskeck/root,beniz/root,abhinavmoudgil95/root,zzxuanyuan/root-compressor-dummy,tc3t/qoot,dfunke/root,davidlt/root,esakellari/my_root_for_test,alexschlueter/cern-root,zzxuanyuan/root,georgtroska/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,simonpf/root,strykejern/TTreeReader,olifre/root,simonpf/root,dfunke/root,pspe/root,veprbl/root,thomaskeck/root,beniz/root,abhinavmoudgil95/root,jrtomps/root,0x0all/ROOT,beniz/root,buuck/root,mhuwiler/rootauto,georgtroska/root,omazapa/root,0x0all/ROOT,karies/root,gganis/root,nilqed/root,sirinath/root,karies/root,kirbyherm/root-r-tools,davidlt/root,smarinac/root,lgiommi/root,nilqed/root,agarciamontoro/root,abhinavmoudgil95/root,simonpf/root,bbockelm/root,kirbyherm/root-r-tools,tc3t/qoot,mkret2/root,buuck/root,0x0all/ROOT,sawenzel/root,simonpf/root,thomaskeck/root,nilqed/root,satyarth934/root,davidlt/root,satyarth934/root,strykejern/TTreeReader,pspe/root,alexschlueter/cern-root,jrtomps/root,mhuwiler/rootauto,perovic/root,zzxuanyuan/root,bbockelm/root,Y--/root,zzxuanyuan/root-compressor-dummy,karies/root,thomaskeck/root,tc3t/qoot,cxx-hep/root-cern,mhuwiler/rootauto,vukasinmilosevic/root,gganis/root,satyarth934/root,satyarth934/root,esakellari/my_root_for_test,vukasinmilosevic/root,arch1tect0r/root,mattkretz/root,arch1tect0r/root,jrtomps/root,ffurano/root5,davidlt/root,buuck/root,simonpf/root,sirinath/root,gganis/root,omazapa/root-old,alexschlueter/cern-root,nilqed/root,perovic/root,Duraznos/root,olifre/root,Y--/root,kirbyherm/root-r-tools,0x0all/ROOT,abhinavmoudgil95/root,beniz/root,gganis/root,dfunke/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,mattkretz/root,BerserkerTroll/root,lgiommi/root,dfunke/root,root-mirror/root,sbinet/cxx-root,Y--/root,georgtroska/root,zzxuanyuan/root-compressor-dummy,strykejern/TTreeReader,davidlt/root,sirinath/root,sawenzel/root,sawenzel/root,smarinac/root,mkret2/root,esakellari/root,nilqed/root,olifre/root,smarinac/root,beniz/root,gganis/root,sawenzel/root,davidlt/root,0x0all/ROOT,CristinaCristescu/root,karies/root,krafczyk/root,agarciamontoro/root,mkret2/root,georgtroska/root,root-mirror/root,sawenzel/root,mkret2/root,esakellari/root,gganis/root,root-mirror/root,thomaskeck/root,Duraznos/root,perovic/root,zzxuanyuan/root,ffurano/root5,beniz/root,kirbyherm/root-r-tools,zzxuanyuan/root-compressor-dummy,gbitzes/root,0x0all/ROOT,perovic/root,thomaskeck/root,mhuwiler/rootauto,simonpf/root,smarinac/root,tc3t/qoot,mhuwiler/rootauto,satyarth934/root,gbitzes/root,smarinac/root,agarciamontoro/root,esakellari/root,sawenzel/root,root-mirror/root,agarciamontoro/root,olifre/root,Duraznos/root,georgtroska/root,zzxuanyuan/root,buuck/root,omazapa/root,Duraznos/root,arch1tect0r/root,arch1tect0r/root,pspe/root,tc3t/qoot,omazapa/root-old,gbitzes/root,vukasinmilosevic/root,sbinet/cxx-root,ffurano/root5,veprbl/root,CristinaCristescu/root,Y--/root,ffurano/root5,arch1tect0r/root,omazapa/root-old,agarciamontoro/root,cxx-hep/root-cern,olifre/root,strykejern/TTreeReader,Y--/root,tc3t/qoot,BerserkerTroll/root,lgiommi/root,esakellari/root,krafczyk/root,pspe/root,vukasinmilosevic/root,agarciamontoro/root,ffurano/root5,BerserkerTroll/root,sirinath/root,simonpf/root,sbinet/cxx-root,nilqed/root,karies/root,arch1tect0r/root,jrtomps/root,cxx-hep/root-cern,evgeny-boger/root,esakellari/my_root_for_test,bbockelm/root,CristinaCristescu/root,veprbl/root,perovic/root,olifre/root,pspe/root,mhuwiler/rootauto,pspe/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,sirinath/root,Y--/root,davidlt/root,ffurano/root5,vukasinmilosevic/root,pspe/root,perovic/root,root-mirror/root,gbitzes/root,zzxuanyuan/root-compressor-dummy,tc3t/qoot,sirinath/root,nilqed/root,bbockelm/root,georgtroska/root,sirinath/root,sawenzel/root,mhuwiler/rootauto,satyarth934/root,esakellari/my_root_for_test,dfunke/root,BerserkerTroll/root,dfunke/root,zzxuanyuan/root,beniz/root,evgeny-boger/root,karies/root,thomaskeck/root,omazapa/root,omazapa/root,vukasinmilosevic/root,nilqed/root,dfunke/root,esakellari/my_root_for_test,Y--/root,zzxuanyuan/root,mhuwiler/rootauto,olifre/root,zzxuanyuan/root,veprbl/root,veprbl/root,esakellari/root,esakellari/root,arch1tect0r/root,davidlt/root,evgeny-boger/root,gbitzes/root,sbinet/cxx-root,esakellari/root,cxx-hep/root-cern,krafczyk/root,satyarth934/root,perovic/root,alexschlueter/cern-root,omazapa/root,gbitzes/root,omazapa/root-old,mkret2/root,abhinavmoudgil95/root,alexschlueter/cern-root,omazapa/root,Dr15Jones/root,buuck/root,olifre/root,beniz/root,georgtroska/root,karies/root,root-mirror/root,mattkretz/root,buuck/root,evgeny-boger/root,mhuwiler/rootauto,perovic/root,mhuwiler/rootauto,Dr15Jones/root,bbockelm/root,simonpf/root,dfunke/root,veprbl/root,agarciamontoro/root,sawenzel/root,sirinath/root,esakellari/my_root_for_test,bbockelm/root,simonpf/root,karies/root,lgiommi/root,BerserkerTroll/root,zzxuanyuan/root,buuck/root,zzxuanyuan/root-compressor-dummy,strykejern/TTreeReader,jrtomps/root,lgiommi/root,root-mirror/root,strykejern/TTreeReader,satyarth934/root,0x0all/ROOT,abhinavmoudgil95/root,sirinath/root,thomaskeck/root,omazapa/root-old,mattkretz/root,cxx-hep/root-cern,satyarth934/root,smarinac/root,CristinaCristescu/root,mkret2/root,georgtroska/root,CristinaCristescu/root,karies/root,sawenzel/root,vukasinmilosevic/root,veprbl/root,jrtomps/root,root-mirror/root,nilqed/root,sawenzel/root,zzxuanyuan/root,sirinath/root,mkret2/root,omazapa/root-old,BerserkerTroll/root,CristinaCristescu/root,olifre/root,arch1tect0r/root,cxx-hep/root-cern,davidlt/root,alexschlueter/cern-root,georgtroska/root,BerserkerTroll/root,mhuwiler/rootauto