SmallChi / JT808Gateway

JT/T808 Gateway,JT808 Gateway, GB808 Gateway(support 2011, 2013, 2019 version) JT/T808网关、JT808网关、GB808网关(支持2011、2013、2019版本)
MIT License
183 stars 117 forks source link

SocketOptionName.NoDelay 设置 True 的时候 在Docker 运行会报错 #28

Closed leida1983 closed 9 months ago

leida1983 commented 9 months ago

Unhandled exception. System.Net.Sockets.SocketException (13): Permission denied

leida1983 commented 9 months ago

把代码

server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, true);

改成

server.NoDelay = true;

就没问题了

SmallChi commented 9 months ago

@yedajiang44 docker的有时间试下哈。

yedajiang44 commented 9 months ago

@leida1983 有尝试将容器设置为 privileged 吗?

leida1983 commented 9 months ago

@leida1983 有尝试将容器设置为 privileged 吗?

谢谢 解决