Zend Http Client execution timeout issue with socket adapter

General discussion forum for the Zend Server

Zend Http Client execution timeout issue with socket adapter

Postby mang5157 on Fri Mar 17, 2017 2:03 pm

I was using Zend_Http_Client for http request in magento with default socket adapter and it was working fine on both my localhost and server but from last few day it was giving connection time out error on server.

When I increase timeout by double then it start working for my every http request but it increase execution time directly double.
Execution time also getting doubled for mail also.
When I set curl adapter with zend http request then it working as it was normally work.

http request format:
Code: Select all
$client = new Zend_Http_Client($url, array('timeout' => 60));
$client->setParameterPost($params);
$response = $client->request($method);


Configuration localhost and server

localhost(ubuntu) php and zend version
PHP 5.5.9-1ubuntu4.20 (cli) (built: Oct 3 2016 13:00:37)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

Server(centos) php and zend version

PHP 5.5.30 (cli) (built: Oct 20 2015 19:50:17)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies with the Example PHP Loader + Intrusion Protection from Example com (disabled) v5.0.7, Copyright (c) 2002-2015, by Example Ltd. with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
mang5157
 
Posts: 1
Joined: Fri Mar 17, 2017 1:41 pm

Return to Zend Server

Who is online

Users browsing this forum: Google [Bot] and 2 guests