Re: [fpc-pascal] How to handle External:SIGPIPE on linux

2013-06-01 Thread Dennis Poon
Ewald, Please kindly share your sample codes for both approaches. Thanks a lot. Dennis Ewald wrote: On 31 May 2013, at 13:31, Dennis wrote: Is there something I can do to trap this external SIGPIPE? You might try catching the signal using fpSignal

Re: [fpc-pascal] How to handle External:SIGPIPE on linux

2013-06-01 Thread Ewald
On 01 Jun 2013, at 08:51, Dennis Poon wrote: Ewald, Please kindly share your sample codes for both approaches. Thanks a lot Right, here you go: *** fpSignal() *** First you declare a function which is going to handle the signal (SignalHandler in my example), then you just call

[fpc-pascal] How to handle External:SIGPIPE on linux

2013-05-31 Thread Dennis
I am using LNet 's SSL sockets on ubuntu. When I use a self signed certificate and the browser gets a warning, it seems the browser immediately send a close-notify or shutdown ssl signal to the server and then without waiting close the connection. On my server side (written with Lnet SSL),

Re: [fpc-pascal] How to handle External:SIGPIPE on linux

2013-05-31 Thread waldo kitty
On 5/31/2013 07:31, Dennis wrote: I am using LNet 's SSL sockets on ubuntu. When I use a self signed certificate and the browser gets a warning, it seems the browser immediately send a close-notify or shutdown ssl signal to the server and then without waiting close the connection. sadly, this