AsyncTcpConnection 连接问题

chenjun

workerman 里面 wss作为客户端的例子
使用AsyncTcpConnection 做异步连接,在服务器命令行输出报错:

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.4.4</center>
</body>
</html>
------------------------ WORKERS -------------------------------
user          worker        listen        processes status
root          none          none           1          

貌似连接也有问题。

2799 7 0
7个回答

抽不完的寂寞

连错地方了吧,
介不介意show下代码

chenjun

[attach]853[/attach]

  • 暂无评论
抽不完的寂寞

wss协议么?
tcp 改 ws试下?

  • chenjun 2017-11-24

    改ws 报错:error opcode 12 and close websocket connection. Buffer:<html>
    <head><title>403 Forbidden</title></head>
    <body bgcolor="white">
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx/1.4.4</center>
    </body>
    </html>

抽不完的寂寞

403了,看起来是服务端不让你连,没权限

  • 暂无评论
chenjun

服务端也是 workerman 做服务器的。要不要设置什么的

  • 暂无评论
workerofmine

你发的那个代码的截图,不是服务端吗?

  • 暂无评论
chenjun

是客户端,已经解决啦,是我自己理解错了。

  • 暂无评论
年代过于久远,无法发表回答
🔝