php - Is there a way to change the rate at which a cURL SSL session ID becomes stale? -
i have set of php scripts running on low-powered embedded device use curl php library post data every second remote server. curl transfer secure, slowdown calculate handshake each connection untenable. changed make use of curl's connection caching, , initial connection takes long time. however, every 2 hundred connections or so, once every 5 minutes, following messages:
* ssl re-using session id * ssl connection using dhe-rsa-aes256-sha * old ssl session id stale, removing
then ssl handshake happens again, causing noticeable delay in data, , subsequent connections work 5 minutes.
i understand need refresh connection, on such slow cpu, , such high granularity, make refreshes less frequent. haven't had success search engines. know enforces refresh, , whether there frequency variable can change?
the remote server under control. uses apache , openssl provide secure connections.
since using apache , openssl, may want change sslsessioncachetimeout value 15 minutes or more (in seconds) depending upon requirement.
update: more info
Comments
Post a Comment