douran7929 2019-01-11 11:45 采纳率: 100%
浏览 58

严重性:警告 - > fsockopen():无法连接到212.71.135.20:11300

I am trying to connect to my pheanstalk in my application with the code below

public function fsockopen($hostname, $port = -1, &$errno = null, &$errstr = null, $timeout = null)
{
    // Warnings (e.g. connection refused) suppressed;
    // return value, $errno and $errstr should be checked instead.
    return @fsockopen($hostname, $port, $errno, $errstr, $timeout);
}

But i get the error below in my log file

Severity: Warning --> fsockopen(): unable to connect to 212.71.235.57:11300 (Connection refused) /home/path/to/my/application/libraries/pheanstalk/classes/Pheanstalk/Socket/StreamFunctions.php 71

I tried to telnet 212.71.135.20 11300 and it works fine by repsonding Connected to domain.com Escape character is '^]'.

Is there anything i have to try to do again to make this work please ?

PS: I tried to use socket_connect & socket_create but none still works.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 我的数据无法存进链表里
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
    • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
    • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
    • ¥15 如何在炒股软件中,爬到我想看的日k线
    • ¥15 seatunnel 怎么配置Elasticsearch
    • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
    • ¥15 (标签-MATLAB|关键词-多址)
    • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
    • ¥500 52810做蓝牙接受端