The feature of publish is not enabled这个提示信息是指发布节点的发布功能未使能。启动发布功能须配置maxPubConnections参数。详情请参阅https://gitee.com/dolphindb/Tutorials_CN/blob/master/streaming_tutorial.md#2-%E6%A0%B8%E5%BF%83%E5%8A%9F%E8%83%BD 第2节。
testPolling
源: Streaming_test.cs 行 29
持续时间: 3 毫秒
消息:
Assert.Fail failed. The feature of publish is not enabled.
堆栈跟踪:
Streaming_test.testPolling() 行 81
标准输出:
System.Net.Sockets.SocketException (0x80004005): 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
在 System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Bind(EndPoint localEP)
在 System.Net.Sockets.TcpListener.Start(Int32 backlog)
在 dolphindb.streaming.Deamon.run() 位置 C:\Users\Administrator.WIN-LCLF8RUQNM4\source\repos\twapexcecution\bin\api-csharp-master\src\streaming\Deamon.cs:行号 83
在 System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.Sockets.Socket.Bind(EndPoint localEP)
在 System.Net.Sockets.TcpListener.Start(Int32 backlog)
配置是
private readonly string SUB_HOST = "localhost";
private readonly int SUB_PORT = 18802;
//private static readonly string REMOTE_HOST = "115.239.209.228";
//private static readonly int REMOTE_PORT = 20700;
private readonly string REMOTE_HOST = "localhost";
private readonly int REMOTE_PORT = 8848;
private readonly string REMOTE_TABLE_NAME = "huobi_MarketBBO";
private readonly int TIMEOUT = 1000;
8848是运行了服务的
修改8848为别的端口后又无法连接
请问要怎么设置才行
The feature of publish is not enabled这个提示信息是指发布节点的发布功能未使能。启动发布功能须配置maxPubConnections参数。详情请参阅https://gitee.com/dolphindb/Tutorials_CN/blob/master/streaming_tutorial.md#2-%E6%A0%B8%E5%BF%83%E5%8A%9F%E8%83%BD 第2节。