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

Connection Issue #67

Open
HemanParbhakar opened this issue Apr 17, 2017 · 4 comments
Open

Connection Issue #67

HemanParbhakar opened this issue Apr 17, 2017 · 4 comments

Comments

@HemanParbhakar
Copy link

Uncaught exception 'SocketTransportException' with message 'Could not create socket; Address family not supported by protocol' in /home/example/public_html/smsApi/test/1/sockettransport.class.php:219 Stack trace: #0 /home/example/public_html/smsApi/test/1/4.php(16): SocketTransport->open() #1 {main} thrown in /home/example/public_html/smsApi/test/1/sockettransport.class.php on line 219

@imranniaz
Copy link

increase the $defaultSendTimeout in SocketTransport Class, it should work afterwards:

class SocketTransport
{
protected $socket;
protected $hosts;
protected $persist;
protected $debugHandler;
public $debug;

protected static $defaultSendTimeout=500;
protected static $defaultRecvTimeout=750;
public static $defaultDebug=true;

@HemanParbhakar
Copy link
Author

Still The Same error after changing the timeout

@himikeb1
Copy link

I found that it is trying IPV6 by default.. got past it with:
$transport::$forceIpv4 = true;
before the transport->open() call.

@yerganat
Copy link

Solve the problem by setting
$transport->setSendTimeout(30000);

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

4 participants