Bug #79445 [NEW]: Connection timed out when accessing website from github actions
| From: | eric at thisisdevelopment dot nl | Date: | Thu, 02 Apr 2020 07:47:24 +0000 |
| Subject: | Bug #79445 [NEW]: Connection timed out when accessing website from github actions | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28570@lists.php.net to get a copy of this message | ||
From: eric at thisisdevelopment dot nl
Operating system:
PHP version: Irrelevant
Package: Website problem
Bug Type: Bug
Bug description:Connection timed out when accessing website from github actions
Description:
------------
When trying to setup a github action which automatically tracks upstream
php releases, I have ran into a problem. When running the script
locally, it works great. However if I run the script via a github
action; it will exit (most of the time) with a connection timed out
error.
At first it seemed to work sometimes, but now it doesn't seem to work at
all.
Things I have tried:
- explicitly using only ipv4 (as it seemed ipv6 gave some issues), this
seemed to work at first, but now it doesn't anymore.
- using a different user-agent; this does not seem to make any
difference
Test script:
---------------
curl -4 -vso- "https://www.php.net/releases/?json&version=7.2"
See https://github.com/thisisdevelopment/php/blob/master/update.sh
for
the full script
Expected result:
----------------
* Trying 185.85.0.29...
* TCP_NODELAY set
* Connected to www.php.net (185.85.0.29) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=*.php.net
* start date: May 24 00:00:00 2019 GMT
* expire date: May 23 12:00:00 2021 GMT
* subjectAltName: host "www.php.net" matched cert's "*.php.net"
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=Thawte TLS RSA
CA G1
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after
upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55ede8034580)
> GET /releases/?json&version=7.2 HTTP/2
> Host: www.php.net
> User-Agent: curl/7.58.0
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 200
< server: myracloud
< date: Thu, 02 Apr 2020 07:38:57 GMT
< content-type: application/json
< content-language: en
< x-frame-options: SAMEORIGIN
< set-cookie: COUNTRY=NA%2C62.251.38.5; expires=Thu, 09-Apr-2020
07:38:57 GMT; Max-Age=604800; path=/; domain=.php.net
< expires: Thu, 02 Apr 2020 07:38:57 GMT
< cache-control: max-age=0
< etag: "myra-e3d36e81"
<
* Connection #0 to host www.php.net left intact
{"announcement":true,"tags":["security"],"date":"19 Mar
2020","source":[{"filename":"php-7.2.29.tar.bz2","name":"PHP
7.2.29
(tar.bz2)","sha256":"eaa1f5503f2bf0c8569ec4ae80ffd8ca8cbc260f01c2503dd0e83dfc9cf0b923","date":"19
Mar 2020"},{"filename":"php-7.2.29.tar.gz","name":"PHP
7.2.29
(tar.gz)","sha256":"ea5c96309394a03a38828cc182058be0c09dde1f00f35809622c2d05c50ee890","date":"19
Mar 2020"},{"filename":"php-7.2.29.tar.xz","name":"PHP
7.2.29
(tar.xz)","sha256":"b117de74136bf4b439d663be9cf0c8e06a260c1f340f6b75ccadb609153a7fe8","date":"19
Mar 2020"}],"version":"7.2.29"}
Actual result:
--------------
* Trying 185.85.0.29...
* TCP_NODELAY set
* connect to 185.85.0.29 port 443 failed: Connection timed out
* Failed to connect to www.php.net port 443: Connection timed out
--
Edit bug report at https://bugs.php.net/bug.php?id=79445&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79445&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79445&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79445&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79445&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79445&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79445&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79445&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79445&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79445&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79445&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79445&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79445&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79445&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79445&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79445&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79445&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79445&r=mysqlcfg