Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout when using raw socket ? #58

Open
mhow2 opened this issue Jan 6, 2017 · 0 comments
Open

timeout when using raw socket ? #58

mhow2 opened this issue Jan 6, 2017 · 0 comments

Comments

@mhow2
Copy link

mhow2 commented Jan 6, 2017

If one doesn't install php curl extension (so it seems to use raw sockets , it hangs for about 1min

  $auth = array('api_key' => 'xx');

  $wrap = new CS_REST_Subscribers('xx', $auth);
  $result = $wrap->get($mail);
// hangs

returns
(...)

User-Agent: CS_REST_Wrapper v5.0.2 PHPv5.5.9-1ubuntu4.20 over Socket with native
Connection: Close
Content-Type: application/json; charset=utf-8
Accept-Encoding: gzip


</pre> down the socket<br />
// hangs here for 1 min

Then:
12:42:30 - CS_REST_SocketTransport: API Call Info for GET https://api.createsend.com/api/v3.1/subscribers/xxx : 368 bytes uploaded. 69 bytes downloaded<br />
12:42:30 - CS_REST_SocketTransport: Received headers <pre>HTTP/1.1 408 REQUEST_TIMEOUT
Content-Length:0
Connection: Close</pre><br />
12:42:30 - CS_REST_SocketTransport: Got HTTP Status Code: 408<br />
12:42:30 - CS_REST_Subscribers: Call result: <pre>array (
  'code' => '408',
  'response' => '',
)</pre><br />

I suspect an SSL error but I have no log to proove or explain that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant