tls/http socket issue



Hi,

I'm currently encountering some odd behaviour with tls. Basically I am
polling a server via https. I start a small group of timers which
carry out asynchronous calls to the https server. Each of my 10 timers
polls the server every 10 seconds and have a timeout of 5 seconds.
What I notice is that on some occasions the third party https server
will timeout/disconnect. When this occurs my callback via the geturl
command returns and the http package indicates a timeout. I then see
that http has closed the socket and shut down the fileevents. However
my CPU usage jumps to 90+%. When I strace the program I see that the
socket tcl has just closed is still trying to read and is getting
resource unavailable errors. The socket never issues a close call in
the strace after this point. A result the reading continues and the
CPU usage hammers away to 99%.

I do have a vwait in my main application so as a matter of course I
wrote a new version of http which does not require vwaits at all. It
uses purely tls, sockets and callbacks. With this I still observe the
same behaviour.

Does anyone know of any issues with tls when the server does not close
down the socket cleanly? I have tried simulating this problem with a
simple cgi script but to no avail.

.



Relevant Pages

  • Re: OT redhat.com uses an invalid security certificate.
    ... server, but a TLS ... certificate contains only one domain name. ... server by HTTPS ...
    (Fedora)
  • Re: RWW with no https
    ... Speaking about MS IIS as a web server, in HTTP, one can run multiple ... "host headers" and run all sites on the default port 80. ... to workstations, runs on port 4125, which is dynamically opened by the SBS ... HTTP why cant you do the same with HTTPS? ...
    (microsoft.public.windows.server.sbs)
  • Re: Outlook 2003 cant see Exch 2003 over RPC
    ... To help you troubleshoot RPC try RPC Ping, ... working on the LAN side is my priority rather than the external HTTPS ... server endpoints and let me see what it's trying to do and perhaps what's ... You stated you did get RPC over HTTP to work for a while when the SBS ...
    (microsoft.public.exchange.setup)
  • Re: RWW with no https
    ... I thought Kerio was on the same ... I understand it is just another web server on the network with SBS. ... it is just a web server, why not change its HTTPS port instead of changing ...
    (microsoft.public.windows.server.sbs)
  • Re: RWW with no https
    ... Sorry for the confusion but someone did a port scan on me and found I ... The SBS server we would like to have RWW ... work without using HTTPS but it seems this is not possible and or I ... "Yes I use Kerio for the 75GB limitation ...
    (microsoft.public.windows.server.sbs)