收藏
回答

https://api.weixin.qq.com/wxa/getwxacodeunlimit很慢?

返回变慢的时候,随便curl下,从请求发出到收到返回需要14秒,服务器端需要配置什么吗?

curl -v --trace-time -o /dev/null -s "https://api.weixin.qq.com/wxa/getwxacodeunlimit"

22:30:44.593211 *   Trying 175.27.5.221...

22:30:44.593301 * TCP_NODELAY set

22:30:45.638868 * Connected to api.weixin.qq.com (175.27.5.221) port 443 (#0)

22:30:45.640590 * ALPN, offering h2

22:30:45.640637 * ALPN, offering http/1.1

22:30:45.646180 * successfully set certificate verify locations:

22:30:45.646226 *   CAfile: /etc/pki/tls/certs/ca-bundle.crt

  CApath: none

22:30:45.646396 } [5 bytes data]

22:30:45.646457 * TLSv1.3 (OUT), TLS handshake, Client hello (1):

22:30:45.646503 } [512 bytes data]

22:30:52.037973 * TLSv1.3 (IN), TLS handshake, Server hello (2):

22:30:52.038032 { [93 bytes data]

22:30:58.532224 * TLSv1.2 (IN), TLS handshake, Certificate (11):

22:30:58.532299 { [4782 bytes data]

22:30:58.532744 * TLSv1.2 (IN), TLS handshake, Server key exchange (12):

22:30:58.532790 { [333 bytes data]

22:30:58.532929 * TLSv1.2 (IN), TLS handshake, Server finished (14):

22:30:58.532956 { [4 bytes data]

22:30:58.533167 * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):

22:30:58.533201 } [70 bytes data]

22:30:58.533298 * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):

22:30:58.533337 } [1 bytes data]

22:30:58.533453 * TLSv1.2 (OUT), TLS handshake, Finished (20):

22:30:58.533500 } [16 bytes data]

22:30:58.563107 * TLSv1.2 (IN), TLS handshake, Finished (20):

22:30:58.563144 { [16 bytes data]

22:30:58.563186 * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256

22:30:58.563218 * ALPN, server did not agree to a protocol

22:30:58.563260 * Server certificate:

22:30:58.563307 *  subject: C=CN; ST=Guangdong Province; L=Shenzhen; O=Tencent Technology (Shenzhen) Company Limited; CN=mp.weixin.qq.com

22:30:58.563352 *  start date: Oct 21 00:00:00 2024 GMT

22:30:58.563395 *  expire date: Nov 21 23:59:59 2025 GMT

22:30:58.563453 *  subjectAltName: host "api.weixin.qq.com" matched cert's "*.weixin.qq.com"

22:30:58.563530 *  issuer: C=US; O=DigiCert, Inc.; CN=DigiCert Secure Site OV G2 TLS CN RSA4096 SHA256 2022 CA1

22:30:58.563574 *  SSL certificate verify ok.

22:30:58.563658 } [5 bytes data]

22:30:58.563737 > GET /wxa/getwxacodeunlimit HTTP/1.1

22:30:58.563737 > Host: api.weixin.qq.com

22:30:58.563737 > User-Agent: curl/7.61.1

22:30:58.563737 > Accept: */*

22:30:58.563737 > 

22:30:58.837868 { [5 bytes data]

22:30:58.837993 < HTTP/1.1 200 OK

22:30:58.838057 < Connection: keep-alive

22:30:58.838088 < Date: Tue, 18 Mar 2025 14:30:58 GMT

22:30:58.838128 < Content-Type: application/json; encoding=utf-8

22:30:58.838164 < RetKey: 11

22:30:58.838207 < LogicRet: 41001

22:30:58.838250 < Content-Length: 81

22:30:58.838296 < 

22:30:58.838330 { [81 bytes data]

22:30:58.838438 * Connectio #0 to host api.weixin.qq.com left intact

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容