Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Indy TcpSSLServer crashes several times
#5
(04-11-2021, 01:34 PM)fpctuxe Wrote: function TIdSSLIOHandlerSocketOpenSSL.SourceIsAvailable: Boolean;
begin
  Result:=Assigned(fSSLSocket) and inherited SourceIsAvailable;
end;

I was thinking more along the lines of:

Code:
function TIdSSLIOHandlerSocketOpenSSL.SourceIsAvailable: Boolean;
begin
  if not fPassThrough then
  begin
    Result := (fSSLSocket <> nil);
    if not Result then Exit;
  end;
  Result := inherited SourceIsAvailable;
end;


Or:

Code:
function TIdSSLIOHandlerSocketOpenSSL.SourceIsAvailable: Boolean;
begin
  if (fPassThrough or (fSSLSocket <> nil)) and inherited SourceIsAvailable;
end;

Reply


Messages In This Thread
RE: Indy TcpSSLServer crashes several times - by rlebeau - 04-12-2021, 06:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)