Hi there,
we have this message on drupal report page... is there something we have to check to have the "green light" instead of the yellow warning or is it included in some patch you are working on?

HTTPRL - Non Blocking	This server does not handle hanging connections.
Using non blocking mode on this server may not work correctly. Debug info: Array (
    [0] => Array (
            [0] => Array (
                    [count] => 1
                    [time] => 7320.73
                    [mode] => 2
                    [blocking] => FALSE
                    [url] => http://venipedia.it/httprl_async_function_callback?count=1
                    [request] => Array (
                            [http://venipedia.it/httprl_async_function_callback?count=1] => stdClass Object (
                                    [url] => http://venipedia.it/httprl_async_function_callback?count=1
                                    [status] => Non-Blocking request sent out. Not waiting for the response.
                                    [code] => 0
                                    [chunk_size] => 1024
                                    [data] => 
                                    [request] => POST /httprl_async_function_callback?count=1 HTTP/1.0
Host: venipedia.it
Connection: closed
User-Agent: Drupal (+http://drupal.org/)
Content-Type: application/x-www-form-urlencoded
Content-Length: 518

master_key=e85a61e6a7acc04cd9e091b865acce7450b913fe2184a275f5090fc9c7786539bddf67f4541e4715753e194286e65c02a45001fecec925fbc842603a029770c1&temp_key=httprl_e13145e0f1270a85dd0cdf21ec876f9b9fbf2219656d3d2e985c31d94397a83f346897aae931e3c5bb919687d92aa762e59760fa40e6589b7ebf0fa4f63e1e0c&mode=0&php_timeout=120&function=httprl_lock_release&args=a%3A1%3A%7Bi%3A0%3Bs%3A135%3A%22httprl_86b63bc7d9b3d38c70502920d163fe6132089c8cfbbd2ce30a94a5e9e844575c6034ca285faf8f652a6b5d7a21d514014e91af6bcac6fa526e2d178d10ac86a9%22%3B%7D
                                    [options] => Array (
                                            [data] => master_key=e85a61e6a7acc04cd9e091b865acce7450b913fe2184a275f5090fc9c7786539bddf67f4541e4715753e194286e65c02a45001fecec925fbc842603a029770c1&temp_key=httprl_e13145e0f1270a85dd0cdf21ec876f9b9fbf2219656d3d2e985c31d94397a83f346897aae931e3c5bb919687d92aa762e59760fa40e6589b7ebf0fa4f63e1e0c&mode=0&php_timeout=120&function=httprl_lock_release&args=a%3A1%3A%7Bi%3A0%3Bs%3A135%3A%22httprl_86b63bc7d9b3d38c70502920d163fe6132089c8cfbbd2ce30a94a5e9e844575c6034ca285faf8f652a6b5d7a21d514014e91af6bcac6fa526e2d178d10ac86a9%22%3B%7D
                                            [internal_states] => Array (
                                                    [background_function_return] => 
                                                    [background_function_args] => Array (
                                                            [0] => httprl_86b63bc7d9b3d38c70502920d163fe6132089c8cfbbd2ce30a94a5e9e844575c6034ca285faf8f652a6b5d7a21d514014e91af6bcac6fa526e2d178d10ac86a9
                                                        )
                                                )
                                            [blocking] => 
                                            [method] => POST
                                            [timeout] => 6.9711589813232
                                            [max_redirects] => 0
                                            [headers] => Array (
                                                    [Host] => venipedia.it
                                                    [Connection] => closed
                                                    [User-Agent] => Drupal (+http://drupal.org/)
                                                    [Content-Type] => application/x-www-form-urlencoded
                                                    [Content-Length] => 518
                                                )
                                            [lock_name] => httprl_e13145e0f1270a85dd0cdf21ec876f9b9fbf2219656d3d2e985c31d94397a83f346897aae931e3c5bb919687d92aa762e59760fa40e6589b7ebf0fa4f63e1e0c
                                            [dns_timeout] => 5
                                            [connect_timeout] => 5
                                            [ttfb_timeout] => 20
                                            [context] => 
                                            [secure_socket_transport] => ssl
                                            [version] => 1.0
                                            [referrer] => 
                                            [domain_connections] => 2
                                            [global_connections] => 128
                                            [global_timeout] => 120
                                            [chunk_size_read] => 32768
                                            [chunk_size_write] => 1024
                                            [async_connect] => 1
                                            [ping_db] => 20
                                        )
                                    [socket] => tcp://venipedia.it:80
                                    [flags] => 6
                                    [uri] => Array (
                                            [scheme] => http
                                            [host] => venipedia.it
                                            [path] => /httprl_async_function_callback
                                            [query] => count=1
                                        )
                                    [running_time] => 0.028841018676758
                                    [fp] => Resource id #1030
                                )
                        )
                )
            [1] => Array (
                    [count] => 1
                    [time] => 927.24
                    [mode] => 2
                    [blocking] => TRUE
                    [url] => http://venipedia.it/httprl_async_function_callback?count=2
                    [request] => Array (
                        )
                )
        )
    [1] => TRUE
)

Comments

dstay’s picture

I had similar items on the status report. I made them go away by:

1. Making sure the "expire" submodule is installed: /project/expire, I missed that dependency on my first reading of the documentation.
2. On the HTTPRL setup menu (admin/config/development/httprl), make sure the self server requests line is BLANK. Then check both boxes on the menu below that.

Hope this helps,

Dan Stay
Owings, MD

bazzmann’s picture

Thanks Dan, I installed "expire" submodule and made blank the self server requests line. ù
The strange thing is that once saved, that line go back to "-1" automatically.

The other strange thing is that till a month ago we had a green check on HTTPRL.

We now serve PHP via Apache and static data via nginx, maybe some module or some other thing in HTTPRL conflicts on that.

Thanks anyway, we'll try to check again, and hope to solve. :)

deanflory’s picture

I too am having the same or similar issue. Here is what I received after running cron manually and getting this on the Status update page:

HTTPRL - Blocking
Problem with stream_select()
This server can not issue self http requests with stream_select(). Debug info: Array (
    [0] => Array (
            [0] => Array (
                    [count] => 1
                    [time] => 6297.14
                    [mode] => 2
                    [blocking] => FALSE
                    [url] => http://MyDomainNameHere.com/httprl_async_function_callback?count=1
                    [request] => Array (
                            [http://MyDomainNameHere.com/httprl_async_function_callback?count=1] => stdClass Object (
                                    [url] => http://MyDomainNameHere.com/httprl_async_function_callback?count=1
                                    [status] => Non-Blocking request sent out. Not waiting for the response.
                                    [code] => 0
                                    [chunk_size] => 1024
                                    [data] => 
                                    [request] => POST /httprl_async_function_callback?count=1 HTTP/1.0
Host: MyDomainNameHere.com
Connection: closed
User-Agent: Drupal (+http://drupal.org/)
Content-Type: application/x-www-form-urlencoded
Content-Length: 554

master_key=*RemovedForSecurity*&mode=0&php_timeout=120&function=httprl_lock_release&args=*RemovedForSecurity*
                                    [options] => Array (
                                            [data] => master_key=*RemovedForSecurity*&mode=0&php_timeout=120&function=httprl_lock_release&args=*RemovedForSecurity*
                                            [internal_states] => Array (
                                                    [background_function_return] => 
                                                    [background_function_args] => Array (
                                                            [0] => httprl_*RemovedForSecurity*
                                                        )
                                                )
                                            [blocking] => 
                                            [method] => POST
                                            [timeout] => 6.99955296516
                                            [max_redirects] => 0
                                            [headers] => Array (
                                                    [Host] => MyDomainNameHere.com
                                                    [Connection] => closed
                                                    [User-Agent] => Drupal (+http://drupal.org/)
                                                    [Content-Type] => application/x-www-form-urlencoded
                                                    [Content-Length] => 554
                                                )
                                            [lock_name] => httprl_*RemovedForSecurity*
                                            [dns_timeout] => 5
                                            [connect_timeout] => 5
                                            [ttfb_timeout] => 20
                                            [context] => 
                                            [secure_socket_transport] => ssl
                                            [version] => 1.0
                                            [referrer] => 
                                            [domain_connections] => 2
                                            [global_connections] => 128
                                            [global_timeout] => 120
                                            [chunk_size_read] => 32768
                                            [chunk_size_write] => 1024
                                            [async_connect] => 1
                                            [ping_db] => 20
                                            [data-input] => Array (
                                                    [master_key] => *RemovedForSecurity*
                                                    [temp_key] => httprl_*RemovedForSecurity*
                                                    [mode] => 
                                                    [php_timeout] => 120
                                                    [function] => httprl_lock_release
                                                    [context] => Array (
                                                        )
                                                    [args] => *RemovedForSecurity*==
                                                )
                                        )
                                    [socket] => tcp://MyDomainNameHere.com:80
                                    [flags] => 6
                                    [uri] => Array (
                                            [scheme] => http
                                            [host] => MyDomainNameHere.com
                                            [path] => /httprl_async_function_callback
                                            [query] => count=1
                                        )
                                    [running_time] => 0.000447034835815
                                    [fp] => Resource id #*RemovedForSecurity*
                                    [bytes_sent] => 0
                                )
                        )
                )
            [1] => Array (
                    [count] => 1
                    [time] => 6369.37
                    [mode] => 2
                    [blocking] => TRUE
                    [url] => http://MyDomainNameHere.com/httprl_async_function_callback?count=2
                    [request] => Array (
                        )
                )
            [2] => Array (
                    [count] => 1
                    [time] => 3096.05
                    [mode] => 1
                    [blocking] => FALSE
                    [url] => http://MyDomainNameHere.com/httprl_async_function_callback?count=0
                    [request] => stdClass Object (
                            [__original_class_name__] => stdClass
                            [request] => POST /httprl_async_function_callback?count=0 HTTP/1.0
Host: MyDomainNameHere.com
Connection: closed
Content-Type: application/x-www-form-urlencoded
Content-Length: 552
User-Agent: Drupal (+http://drupal.org/)

master_key=*RemovedForSecurity*&mode=1&php_timeout=7&function=httprl_lock_release&args=*RemovedForSecurity*
                            [data] => 0=*RemovedForSecurity*
                            [protocol] => HTTP/1.1
                            [status_message] => OK
                            [headers] => Array (
                                    [date] => Sun, 26 Jan 2014 22:43:34 GMT
                                    [server] => Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
                                    [x-powered-by] => PHP/5.4.22
                                    [x-drupal-cache] => MISS
                                    [expires] => Sun, 19 Nov 1978 05:00:00 GMT
                                    [cache-control] => no-cache, must-revalidate, post-check=0, pre-check=0
                                    [etag] => "*RemovedForSecurity*"
                                    [set-cookie] => SESS*RemovedForSecurity*; expires=Wed, 19-Feb-2014 02:16:57 GMT; path=/; domain=.MyDomainNameHere.com; HttpOnly
                                    [last-modified] => Sun, 26 Jan 2014 22:43:34 GMT
                                    [connection] => close
                                    [content-type] => application/x-www-form-urlencoded
                                )
                            [code] => 200
                        )
                )
        )
    [1] => TRUE
)

-
I followed dstay's #1 instructions and enabled expire (Cache Expiration), made sure the HTTPRL self server requests line was blank (had a -1 in it) and checked the two checkboxes below that field. I don't know if any one of these things did the trick but performing all of them worked to prevent an error report like above when running cron manually and ending up on the Status report page.

Thank you dstay! Things already feel a bit snappier, though it could be my mind playing tricks on me, hopefully not. Page loads seem to appear fully rendered where images and maybe some other items would load in after the page was already loaded before this was fixed on my installation.

FYI, you have to take your site out of maintenance mode for this error to show up.

ALSO, there is NO mention of the expire (Cache Expiration) module on this HTTPRL module's project page or in the README, not even a "exp" anywhere in either location. Needs better documentation or a working default upon install/enabling (though I'm not sure if I put a "-1" in the self server requests field months ago).

On to the next issue...

mikeytown2’s picture

I believe enabling the expire module isn't needed. I would try a cache flush as that should have the same affect.

This test will always fail if the site is in maintenance mode, thus I do not run the test it when your site is in maintenance mode.

-1 get's put in there as httprl will try several different configurations when trying to create a connection. -1 means that it will use the value found in $_SERVER['HTTP_HOST']. If it is blank, httprl will try $_SERVER['SERVER_ADDR'] and fallback to 127.0.0.1 if everything failed. Looks like I need to put in logic to go back from -1 to blank as server configurations change. Will piggyback on this issue as it is all related.
#2181891: Errors running commands via Drush 6.x with latest httprl

joshuautley’s picture

Following #1 prevents me from reaching the Status Report. I'm always left with,

"Site temporarily unavailable.
Connection timed out - please try again."

If I put the -1 back in and regardless of whether or not I have the Expire module enabled or disabled I can at least see the error on the status Report.

SocialNicheGuru’s picture

#4 are you sure it falls back?
http_host doesn't work on my system but server_addr does.
I set httprl_server_address = -1
It should have cascaded and found the right value.
instead I got httprl blocking
When I set httprl_server_address to nothing, it works just fine.

bazzmann’s picture

Hi Mike,
months after, and server/drupal/ecc. ecc. versions after... still have the same problem... we have the yellow notify on report. I place the last report message here:

HTTPRL - Non Blocking	This server does not handle hanging connections.
Using non blocking mode on this server may not work correctly. Debug info: Array (
    [0] => Array (
            [0] => Array (
                    [count] => 1
                    [time] => 7302.28
                    [mode] => 2
                    [blocking] => FALSE
                    [url] => http://venipedia.it/httprl_async_function_callback?count=1
                    [request] => Array (
                            [http://venipedia.it/httprl_async_function_callback?count=1] => stdClass Object (
                                    [url] => http://venipedia.it/httprl_async_function_callback?count=1
                                    [status] => Non-Blocking request sent out. Not waiting for the response.
                                    [code] => 0
                                    [chunk_size] => 1024
                                    [data] =>
                                    [request] => POST /httprl_async_function_callback?count=1 HTTP/1.0
Host: venipedia.it
Connection: closed
User-Agent: Drupal (+http://drupal.org/)
Content-Type: application/x-www-form-urlencoded
Content-Length: 554

master_key=e85a61e6a7acc04cd9e091b865acce7450b913fe2184a275f5090fc9c7786539bddf67f4541e4715753e194286e65c02a45001fecec925fbc842603a029770c1&temp_key=httprl_ef72d827f0fe626c6f8eacd5fce2272086ef5aa2907a262da54c8cb18353e2244e2140e7543d045a710369c18e9e48d90d6cbbaa4ca2c1deeca128213c16afd7&mode=0&php_timeout=120&function=httprl_lock_release&args=YToxOntpOjA7czoxMzU6Imh0dHBybF81ZWIwNDZkYWVlZWZkZjg0NzFlMTk4YjdlZDI1ZjJkM2JmY2Y4M2JlNGMyOTUxNWE1Yjg1YzU3YTVkM2Y3ZTAzNTlhOTUwZGM2MzE1NmYxN2VlZDViM2JiNzc3MTIwNjA3MGFiNzk5ZjI5NDY3N2QyMmRlMDNkYjQ4MjY0ZWJmYiI7fQ%3D%3D
                                    [options] => Array (
                                            [data] => master_key=e85a61e6a7acc04cd9e091b865acce7450b913fe2184a275f5090fc9c7786539bddf67f4541e4715753e194286e65c02a45001fecec925fbc842603a029770c1&temp_key=httprl_ef72d827f0fe626c6f8eacd5fce2272086ef5aa2907a262da54c8cb18353e2244e2140e7543d045a710369c18e9e48d90d6cbbaa4ca2c1deeca128213c16afd7&mode=0&php_timeout=120&function=httprl_lock_release&args=YToxOntpOjA7czoxMzU6Imh0dHBybF81ZWIwNDZkYWVlZWZkZjg0NzFlMTk4YjdlZDI1ZjJkM2JmY2Y4M2JlNGMyOTUxNWE1Yjg1YzU3YTVkM2Y3ZTAzNTlhOTUwZGM2MzE1NmYxN2VlZDViM2JiNzc3MTIwNjA3MGFiNzk5ZjI5NDY3N2QyMmRlMDNkYjQ4MjY0ZWJmYiI7fQ%3D%3D
                                            [internal_states] => Array (
                                                    [background_function_return] =>
                                                    [background_function_args] => Array (
                                                            [0] => httprl_5eb046daeeefdf8471e198b7ed25f2d3bfcf83be4c29515a5b85c57a5d3f7e0359a950dc63156f17eed5b3bb7771206070ab799f294677d22de03db48264ebfb
                                                        )
                                                )
                                            [blocking] =>
                                            [method] => POST
                                            [timeout] => 6.9695839881897
                                            [max_redirects] => 0
                                            [headers] => Array (
                                                    [Host] => venipedia.it
                                                    [Connection] => closed
                                                    [User-Agent] => Drupal (+http://drupal.org/)
                                                    [Content-Type] => application/x-www-form-urlencoded
                                                    [Content-Length] => 554
                                                )
                                            [lock_name] => httprl_ef72d827f0fe626c6f8eacd5fce2272086ef5aa2907a262da54c8cb18353e2244e2140e7543d045a710369c18e9e48d90d6cbbaa4ca2c1deeca128213c16afd7
                                            [dns_timeout] => 5
                                            [connect_timeout] => 5
                                            [ttfb_timeout] => 20
                                            [context] =>
                                            [secure_socket_transport] => ssl
                                            [version] => 1.0
                                            [referrer] =>
                                            [domain_connections] => 2
                                            [global_connections] => 128
                                            [global_timeout] => 120
                                            [chunk_size_read] => 32768
                                            [chunk_size_write] => 1024
                                            [async_connect] => 1
                                            [ping_db] => 20
                                            [data-input] => Array (
                                                    [master_key] => e85a61e6a7acc04cd9e091b865acce7450b913fe2184a275f5090fc9c7786539bddf67f4541e4715753e194286e65c02a45001fecec925fbc842603a029770c1
                                                    [temp_key] => httprl_ef72d827f0fe626c6f8eacd5fce2272086ef5aa2907a262da54c8cb18353e2244e2140e7543d045a710369c18e9e48d90d6cbbaa4ca2c1deeca128213c16afd7
                                                    [mode] =>
                                                    [php_timeout] => 120
                                                    [function] => httprl_lock_release
                                                    [context] => Array (
                                                        )
                                                    [args] => YToxOntpOjA7czoxMzU6Imh0dHBybF81ZWIwNDZkYWVlZWZkZjg0NzFlMTk4YjdlZDI1ZjJkM2JmY2Y4M2JlNGMyOTUxNWE1Yjg1YzU3YTVkM2Y3ZTAzNTlhOTUwZGM2MzE1NmYxN2VlZDViM2JiNzc3MTIwNjA3MGFiNzk5ZjI5NDY3N2QyMmRlMDNkYjQ4MjY0ZWJmYiI7fQ==
                                                )
                                        )
                                    [socket] => tcp://venipedia.it:80
                                    [flags] => 6
                                    [uri] => Array (
                                            [scheme] => http
                                            [host] => venipedia.it
                                            [path] => /httprl_async_function_callback
                                            [query] => count=1
                                        )
                                    [running_time] => 0.030416011810303
                                    [fp] => Resource id #1486
                                    [bytes_sent] => 0
                                )
                        )
                )
            [1] => Array (
                    [count] => 1
                    [time] => 394.53
                    [mode] => 2
                    [blocking] => TRUE
                    [url] => http://venipedia.it/httprl_async_function_callback?count=2
                    [request] => Array (
                        )
                )
        )
    [1] => TRUE
)

I did try some check over the nginx configuration, but without success.
Any idea now?

Thanks in advance,
M.

sangus’s picture

I have a virtual private server setup so I am able to modify /etc/httpd/conf/httpd.conf (location may vary for you). I just followed the instructions here: http://stackoverflow.com/questions/11739709/how-to-configure-php-or-apac... and that seemed to get rid of the error for me. Hope this helps someone!

deanflory’s picture

Somehow a "-1" got back into that field and the second checkbox was not checked.

Deleting the -1 from the field and checking both checkboxes AGAIN seemed to fix the issue. I'm not sure if I uninstalled the module at some time or if something else like putting the site into maintenance mode changed those settings, but I was getting the same error on the Status Report page again. Second time is a charm?

drupal fan0815’s picture

I have

HTTPRL - Non Blocking	This server does not handle hanging connections.
Using non blocking mode on this server may not work correctly. Debug info: Array (
    [0] => Array (
            [0] => Array (
                    [count] => 1
                    [time] => 7266.89
                    [mode] => 2
                    [blocking] => FALSE
                    [url] => http://rothlive.de /httprl_async_function_callback?count=1
                    [request] => Array (
                            [http://rothlive.de/httprl_async_function_callback?count=1] => stdClass Object (
                                    [url] => http://rothlive.de /httprl_async_function_callback?count=1
                                    [status] => Non-Blocking request sent out. Not waiting for the response.
                                    [code] => 0
                                    [chunk_size] => 1024
                                    [data] => 
                                    [request] => POST /httprl_async_function_callback?count=1 HTTP/1.0
Host: rothlive.de
Connection: closed
User-Agent: Drupal (+http://drupal.org/)
Content-Type: application/x-www-form-urlencoded
Content-Length: 554

master_key= &temp_key=httprl_&mode=0&php_timeout=120&function=httprl_lock_release&args=                                    [options] => Array (
                                            [data] => master_key= &temp_key=httprl_&mode=0&php_timeout=120&function=httprl_lock_release&args=                                            [internal_states] => Array (
                                                    [background_function_return] => 
                                                    [background_function_args] => Array (
                                                            [0] => httprl_
                                                        )
                                                )
                                            [blocking] => 
                                            [method] => POST
                                            [timeout] => 6.9993431568146
                                            [max_redirects] => 0
                                            [headers] => Array (
                                                    [Host] => rothlive.de
                                                    [Connection] => closed
                                                    [User-Agent] => Drupal (+http://drupal.org/)
                                                    [Content-Type] => application/x-www-form-urlencoded
                                                    [Content-Length] => 554
                                                )
                                            [lock_name] => httprl_
                                            [dns_timeout] => 5
                                            [connect_timeout] => 5
                                            [ttfb_timeout] => 20
                                            [context] => 
                                            [secure_socket_transport] => ssl
                                            [version] => 1.0
                                            [referrer] => 
                                            [domain_connections] => 2
                                            [global_connections] => 128
                                            [global_timeout] => 120
                                            [chunk_size_read] => 32768
                                            [chunk_size_write] => 1024
                                            [async_connect] => 1
                                            [ping_db] => 20
                                            [data-input] => Array (
                                                    [master_key] => 
                                                    [temp_key] => httprl_
                                                    [mode] => 
                                                    [php_timeout] => 120
                                                    [function] => httprl_lock_release
                                                    [context] => Array (
                                                        )
                                                    [args] => ==
                                                )
                                        )
                                    [socket] => tcp://rothlive.de:80
                                    [flags] => 6
                                    [uri] => Array (
                                            [scheme] => http
                                            [host] => rothlive.de
                                            [path] => /httprl_async_function_callback
                                            [query] => count=1
                                        )
                                    [running_time] => 0.0006568431854248
                                    [fp] => Resource id #330
                                    [bytes_sent] => 0
                                )
                        )
                )
            [1] => Array (
                    [count] => 1
                    [time] => 1191.52
                    [mode] => 2
                    [blocking] => TRUE
                    [url] => http://rothlive.de/httprl_async_function_callback?count=2
                    [request] => Array (
                        )
                )
        )
    [1] => TRUE
)

but only with a new version (7.x-1.14).
At 7.x-1.14+18-dev have i only a error when i use https.
Https error:

HTTPRL - Core	drupal_http_request()
Your system or network configuration does not allow Drupal to access web pages. This could be due to your webserver configuration or PHP settings. Debug info: Array (
    [0] => Array (
            [0] => Array (
                    [count] => 1
                    [time] => 7270.87
                    [mode] => 2
                    [blocking] => FALSE
                    [url] => https://..... /httprl_async_function_callback?count=1
                    [request] => Array (
                            [https://…… /httprl_async_function_callback?count=1] => stdClass Object (
                                    [url] => https://..... /httprl_async_function_callback?count=1
                                    [status] => Connecting.
                                    [code] => -1004
                                    [chunk_size] => 1024
                                    [data] =>
                                    [request] => POST /httprl_async_function_callback?count=1 HTTP/1.0
Host: rothlive.de
Connection: closed
User-Agent: Drupal (+http://drupal.org/)
Content-Type: application/x-www-form-urlencoded
Content-Length: 554

master_key= &temp_key=httprl_&mode=0&php_timeout=120&function=httprl_lock_release&args=
                                    [options] => Array (
                                            [data] => master_key= &temp_key=httprl_&mode=0&php_timeout=120&function=httprl_lock_release&args=
                                            [internal_states] => Array (
                                                    [background_function_return] =>
                                                    [background_function_args] => Array (
                                                            [0] => httprl_
                                                        )
                                                )
                                            [blocking] =>
                                            [method] => POST
                                            [timeout] => 6.9946751594543
                                            [max_redirects] => 0
                                            [headers] => Array (
                                                    [Host] => rothlive.de
                                                    [Connection] => closed
                                                    [User-Agent] => Drupal (+http://drupal.org/)
                                                    [Content-Type] => application/x-www-form-urlencoded
                                                    [Content-Length] => 554
                                                )
                                            [lock_name] => httprl_
                                            [dns_timeout] => 5
                                            [connect_timeout] => 5
                                            [ttfb_timeout] => 20
                                            [context] =>
                                            [secure_socket_transport] => ssl
                                            [version] => 1.0
                                            [referrer] =>
                                            [domain_connections] => 2
                                            [global_connections] => 128
                                            [global_timeout] => 120
                                            [chunk_size_read] => 32768
                                            [chunk_size_write] => 1024
                                            [async_connect] =>
                                            [ping_db] => 20
                                            [data-input] => Array (
                                                    [master_key] => 
                                                    [temp_key] => httprl_
                                                    [mode] =>
                                                    [php_timeout] => 120
                                                    [function] => httprl_lock_release
                                                    [context] => Array (
                                                        )
                                                    [args] => ==
                                                )
                                        )
                                    [socket] => ssl://…….:443
                                    [flags] => 4
                                    [uri] => Array (
                                            [scheme] => https
                                            [host] => ……
                                            [path] => /httprl_async_function_callback
                                            [query] => count=1
                                        )
                                    [running_time] => 0.0053248405456543
                                    [fp] =>
                                    [error] => Error initializing socket ssl://………..:443.
                                )
                        )
                )
            [1] => Array (
                    [count] => 1
                    [time] => 7553.11
                    [mode] => 2
                    [blocking] => FALSE
                    [url] => https://....... /httprl_async_function_callback?count=2
                    [request] => Array (
                            [https://….. /httprl_async_function_callback?count=2] => stdClass Object (
                                    [url] => https://...... /httprl_async_function_callback?count=2
                                    [status] => Connecting.
                                    [code] => -1004
                                    [chunk_size] => 1024
                                    [data] =>
                                    [request] => POST /httprl_async_function_callback?count=2 HTTP/1.0
Host: rothlive.de
Connection: closed
User-Agent: Drupal (+http://drupal.org/)
Content-Type: application/x-www-form-urlencoded
Content-Length: 554

master_key= &temp_key=httprl_&mode=0&php_timeout=120&function=httprl_lock_release&args=
                                    [options] => Array (
                                            [data] => master_key= &temp_key=httprl_&mode=0&php_timeout=120&function=httprl_lock_release&args=
                                            [internal_states] => Array (
                                                    [background_function_return] =>
                                                    [background_function_args] => Array (
                                                            [0] => httprl_
                                                        )
                                                )
                                            [blocking] =>
                                            [method] => POST
                                            [timeout] => 6.9796240329742
                                            [max_redirects] => 0
                                            [headers] => Array (
                                                    [Host] => rothlive.de
                                                    [Connection] => closed
                                                    [User-Agent] => Drupal (+http://drupal.org/)
                                                    [Content-Type] => application/x-www-form-urlencoded
                                                    [Content-Length] => 554
                                                )
                                            [lock_name] => httprl_
                                            [dns_timeout] => 5
                                            [connect_timeout] => 5
                                            [ttfb_timeout] => 20
                                            [context] =>
                                            [secure_socket_transport] => ssl
                                            [version] => 1.0
                                            [referrer] =>
                                            [domain_connections] => 2
                                            [global_connections] => 128
                                            [global_timeout] => 120
                                            [chunk_size_read] => 32768
                                            [chunk_size_write] => 1024
                                            [async_connect] =>
                                            [ping_db] => 20
                                            [data-input] => Array (
                                                    [master_key] => 
                                                    [temp_key] => httprl_
                                                    [mode] =>
                                                    [php_timeout] => 120
                                                    [function] => httprl_lock_release
                                                    [context] => Array (
                                                        )
                                                    [args] => ==
                                                )
                                        )
                                    [socket] => ssl://…..:443
                                    [flags] => 4
                                    [uri] => Array (
                                            [scheme] => https
                                            [host] => …..
                                            [path] => /httprl_async_function_callback
                                            [query] => count=2
                                        )
                                    [running_time] => 0.020375967025757
                                    [fp] =>
                                    [error] => Error initializing socket ssl://……:443.
                                )
                        )
                )
            [2] => Array (
                    [count] => 1
                    [time] => 7266.65
                    [mode] => 2
                    [blocking] => TRUE
                    [url] => https://...... /httprl_async_function_callback?count=3
                    [request] => Array (
                            [https://…. /httprl_async_function_callback?count=3] => stdClass Object (
                                    [url] => https://..... /httprl_async_function_callback?count=3
                                    [status] => Connecting.
                                    [code] => -1004
                                    [chunk_size] => 1024
                                    [data] =>
                                    [request] => POST /httprl_async_function_callback?count=3 HTTP/1.0
Host: rothlive.de
Connection: closed
User-Agent: Drupal (+http://drupal.org/)
Content-Type: application/x-www-form-urlencoded
Content-Length: 554

master_key= &temp_key=httprl_&mode=1&php_timeout=120&function=httprl_lock_release&args=
                                    [options] => Array (
                                            [data] => master_key= &temp_key=httprl_&mode=1&php_timeout=120&function=httprl_lock_release&args=
                                            [internal_states] => Array (
                                                    [background_function_return] =>
                                                    [background_function_args] => Array (
                                                            [0] => httprl_
                                                        )
                                                    [background_function_printed] =>
                                                )
                                            [blocking] => 1
                                            [method] => POST
                                            [timeout] => 6.9950549602509
                                            [max_redirects] => 0
                                            [headers] => Array (
                                                    [Host] => rothlive.de
                                                    [Connection] => closed
                                                    [User-Agent] => Drupal (+http://drupal.org/)
                                                    [Content-Type] => application/x-www-form-urlencoded
                                                    [Content-Length] => 554
                                                )
                                            [lock_name] => httprl_
                                            [dns_timeout] => 5
                                            [connect_timeout] => 5
                                            [ttfb_timeout] => 20
                                            [context] =>
                                            [secure_socket_transport] => ssl
                                            [version] => 1.0
                                            [referrer] =>
                                            [domain_connections] => 2
                                            [global_connections] => 128
                                            [global_timeout] => 120
                                            [chunk_size_read] => 32768
                                            [chunk_size_write] => 1024
                                            [async_connect] =>
                                            [ping_db] => 20
                                            [data-input] => Array (
                                                    [master_key] => 
                                                    [temp_key] => httprl_
                                                    [mode] => 1
                                                    [php_timeout] => 120
                                                    [function] => httprl_lock_release
                                                    [context] => Array (
                                                        )
                                                    [args] => ==
                                                )
                                        )
                                    [socket] => ssl://…..:443
                                    [flags] => 4
                                    [uri] => Array (
                                            [scheme] => https
                                            [host] => ….
                                            [path] => /httprl_async_function_callback
                                            [query] => count=3
                                        )
                                    [running_time] => 0.0049450397491455
                                    [fp] =>
                                    [error] => Error initializing socket ssl://….:443.
                                )
                        )
                )
            [3] => Array (
                    [count] => 1
                    [time] => 7270.85
                    [mode] => 1
                    [blocking] => FALSE
                    [url] => https://.... /httprl_async_function_callback?count=0
                    [request] => stdClass Object (
                            [__original_class_name__] => stdClass
                            [code] => 0
                            [error] => Fehler beim Öffnen der Socket Verbindung ssl://….:443
                        )
                )
        )
    [1] => TRUE
)

Keys i have deleted on code.

Can anyone help me ?
Sorry my english is bad german is better.

philsward’s picture

I believe my issue is related to https. I MUST use -1 as the server IP due to the https nature of the site. Running on a non-https sandbox, the error goes away. Any suggestions on this would be appreciated.

Update: And now I'm confused... I wait a little bit, refresh some stuff and now the error is gone...

philsward’s picture

Playing around a bit more, I'm thinking the following mysql my.cnf setting can create this error:

skip_name_resolve

This variable is set from the value of the --skip-name-resolve option. If it is OFF, mysqld resolves host names when checking client connections. If it is ON, mysqld uses only IP numbers; in this case, all Host column values in the grant tables must be IP addresses or localhost.

In other words, it prevents mysql from doing DNS reverse IP lookups. Source

joelpittet’s picture

Version: 7.x-1.12 » 7.x-1.x-dev
SKAUGHT’s picture

note: moving to the dev line [as of 2016-Jan-11 ] seems to have enough fixes to give green light on status page.
* put true server ip on first input 'IP Address to send all self ser...'
* put domain name on second field 'Host name of the serve...'
* 5th field to 5 seconds 'Millisecond Delay For Non-Blocking Requests'

giovanninews’s picture

The solution indicated in comment # 14 for me has solved the problem.
Thanks @SKAUGHT

mattwmc’s picture

If anyone else finds this, try the latest dev version, it has new / more options. Worked for me after none of the above would.

IP Address to send all self server requests to: -1

Host name of the server to send all self server requests to: www.sitename.com (or whatever)

Millisecond Delay For Non-Blocking Requests: 5

Check your status report, it tells you what to do.

joshuautley’s picture

#16 Really? Maybe I'll give it a try. Good to know you got it working. Let us know if you run into any other errors. I've been getting load times under 3 seconds without it but now with all sites needing to be HTTPS for SEO I'll give it a try and see if I can get a better score.

- Cheers

mattwmc’s picture

Yep it worked for me. I'm on https.

numerabilis’s picture

I aplied this patch from https://drupal.stackexchange.com/questions/167453/how-to-solve-the-huge-...

diff --git a/httprl.install b/httprl.install
index d7e2963..e2d4f04 100644
--- a/httprl.install
+++ b/httprl.install
@@ -177,7 +177,7 @@ function httprl_install_http_test($mode, $blocking = FALSE) {
       // Setup options array.
       'options' => array(
         'blocking' => $blocking,
-        'timeout' => 7,
+        'timeout' => 1,
         'max_redirects' => 0,
         'headers' => $headers,
       ),

It worked for me.

philsward’s picture

Years later I ran into this again on a site I "thought" was working properly.

Turns out, going from PHP 7.2 -> 7.3 "fixed" the error.

hilrap’s picture

@philsward thank you! Updating to PHP version 7.3 solved the issue for me.

Requires additional changes on the HTTPRL configuration. Thus, "IP Address to send all self server requests to" -1 and "Host name of server" to domain name.

Edit:
If I change to PHP 7.4, the error appears again.

JoshaHubbers’s picture

I also had this problem today. In the new version of the module the patch does not work, but you can solve it by running these drush commands:

drush vset httprl_install_lock_time 1
drush cc all
markpape’s picture

@hirap i also had issues with PHP 7.4. However, following @numerabilis approach, i installed the latest dev version "7.x-1.14+64-dev" from https://www.drupal.org/project/httprl/releases/7.x-1.x-dev and changed the httprl.install file on line 197 from

$timing = array(httprl_variable_get('httprl_install_lock_time', 7), httprl_variable_get('httprl_install_connection_time', 5));

to

$timing = array(httprl_variable_get('httprl_install_lock_time', 1), httprl_variable_get('httprl_install_connection_time', 5));

This worked for me.

gngn’s picture

To #23: I think the code from httprl.install is used when installing the module.
It just changes the default for the drupalvariable 'httprl_install_lock_time' from 7 to 1.
So if no value is set, $timing gets the value 1 instead of 7.

IMHO it's better to set the wanted value.
I do not know if this is possible via UI - but it is via drush as staed in #22
This way you do not need to aptch the module.

philsward’s picture

What an interesting surprise... this fixed my problem listed in: #3310797: Fix PHP 7.4 Compatibility Issues

Another interesting find...

httprl_install_lock_time = 1
httprl_install_lock_time = 2
httprl_install_lock_time = 3
httprl_install_lock_time = 4

These all work perfectly fine. The number is directly related to how long it takes the status page to load (for me at least)

httprl_install_lock_time = 5
httprl_install_lock_time = 6
httprl_install_lock_time = 7 (default)

Anything above 4, results in the stream_select error and takes 30+ seconds for the status report page to load.

As it sits, anyone using PHP 7.4 and dev+64 will have problems using httprl. I mentioned in my 7.4 issue that we probably need this exposed to the admin interface as someone here already suggested. The other solution would be an update with a DB update that changes httprl_install_lock_time from 7 to a lower number.