[fpc-pascal] https support; call for testers

Michael Van Canneyt michael at freepascal.org
Thu Sep 3 16:30:27 CEST 2015



On Wed, 2 Sep 2015, sami wrote:

> Hi Again, 
>
> I did it work but still having problems
>
> Thres two patches attached for sscokets.pp and fphttpserver.pp
>
> Using TSSLSocketHandler worked, but i think it is not for use with
> concurrency
>
> TSSLSocketHandler use FSSL: TSSL; object that is freed at the end of every
> connection 
>
> if thereĀ“s two or more concurrent connections it crash with SIGSEGV because
> FSSL = nil on line 436 
>
>  Result:=FSSL.Read(@Buffer ,Count);
>
> Ideas how to make TSSLSocketHandler work with concurrency ???

We'll need to introduce some extra argument to control the freeing of the FSSL.

>
> Thanks. 
> fphttpserver.patch
> <http://free-pascal-general.1045716.n5.nabble.com/file/n5722526/fphttpserver.patch> 
> ssockets.patch
> <http://free-pascal-general.1045716.n5.nabble.com/file/n5722526/ssockets.patch>

Thanks for the patch. I'll see about integrating this ASAP.

Michael.


More information about the fpc-pascal mailing list