# Failing DC SSO connection slowing down the admin with a timeout

**URL:** <https://meta.discourse.org/t/failing-dc-sso-connection-slowing-down-the-admin-with-a-timeout/333812>\
**Category:** WordPress\
**Created:** [October 31, 2024, 11:08am UTC](https://meta.discourse.org/t/failing-dc-sso-connection-slowing-down-the-admin-with-a-timeout/333812 "2024-10-31T11:08:56Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Firsh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firsh/32/454861_2.png) [@Firsh](https://meta.discourse.org/u/Firsh)\
**Post date:** [October 31, 2024, 1:17pm UTC](https://meta.discourse.org/t/failing-dc-sso-connection-slowing-down-the-admin-with-a-timeout/333812/5 "2024-10-31T13:17:03Z")

</div>

Yes but it’s a private members-only site and forum in Hungarian.

Forum: [https://forum.intelligensbefektetok.hu/](https://forum.intelligensbefektetok.hu/)  
Site: [https://intelligensbefektetok.hu/](https://intelligensbefektetok.hu/)

My staging was an exact copy made manually, although running in Docker in a VM. Prod is not managed by me, and have no idea what kind of hosting it is, but we never had any problems and it was quite fast before this.

I tried just now:

- The sslverify = false option in `discourse_request` function
- And created a CNAME (alias) on Cloudflare on another one of my domains to point to the forum’s host behind the scenes (“better” SSL and the host is different, to rule out some kind of loopback restriction in the firewall of the live site’s host): [https://ibkforum.stateofbliss.us](https://ibkforum.stateofbliss.us) but it timeouts the same way, while testing requests from staging works fine. It redirects to the main site when not logged in.
- I’m using this tiny plugin to check the requests: [https://wphive.com/plugins/wp-remote-request-check/](https://wphive.com/plugins/wp-remote-request-check/)

> object(WP\_Error)#5757 (3) { [“errors”]=\> array(1) { [“http\_request\_failed”]=\> array(1) { [0]=\> string(59) “cURL error 28: Connection timed out after 5000 milliseconds” } } [“error\_data”]=\> array(0) { } [“additional\_data”:protected]=\> array(0) { } }

- Other WP sites; this forum; the live site when making a request to itself, all work fine.

Staging WP’s log:

```plaintext
[2024-10-31 13:09:08] connection.INFO: check_connection_status.valid_scopes  
[2024-10-31 13:09:19] connection.INFO: check_connection_status.successful_connection  
[2024-10-31 13:09:19] connection.INFO: check_connection_status.valid_scopes

```

Live site logs are the same as in my OP:

`[2024-10-31 13:12:32] connection.INFO: check_connection_status.failed_to_connect {"error":"wpdc_response_error","message":"An invalid response was returned from Discourse","http_code":"","http_body":""}`

When loaded directly in the browser, this works:  
[https://forum.intelligensbefektetok.hu/site.json](https://forum.intelligensbefektetok.hu/site.json)

Thanks for helping btw

---

_[View the full topic](https://meta.discourse.org/t/failing-dc-sso-connection-slowing-down-the-admin-with-a-timeout/333812)._
