Azure / DotNetty

DotNetty project – a port of netty, event-driven asynchronous network application framework
Other
4.09k stars 977 forks source link

what's update from 0.4.6 to 0.4.7,should I update the nuget package? #337

Open wuzhenda opened 6 years ago

wuzhenda commented 6 years ago

1) rt. is there a description about the new version update? what kind of bug fixed?

2)recently I find the dotnetty 'Channel.WriteAndFlushAsync' sometimes hang the process. it takes a long time to finish the async task. If the channel has some problem, can the netty discover it?

wuzhenda commented 6 years ago

for problem 2: in order to make sure the problem, I add a task timeout solution,when use 'Channel.WriteAndFlushAsync' , I set 2 minutes timeout check if the function done, at the result this exception happend:

System.AggregateException: 发生一个或多个错误。 ---> System.Exception: task faulted ---> DotNetty.Transport.Channels.ClosedChannelException: 发生 I/O 错误。 --- 内部异常堆栈跟踪的结尾 --- 在 DTrms.Common.Utility.TaskExtensions.<TimeoutAfter>d__2.MoveNext() --- 内部异常堆栈跟踪的结尾 --- ---> (内部异常 #0) System.Exception: task faulted ---> DotNetty.Transport.Channels.ClosedChannelException: 发生 I/O 错误。 --- 内部异常堆栈跟踪的结尾 --- 在 DTrms.Common.Utility.TaskExtensions.<TimeoutAfter>d__2.MoveNext()<---

It seems the channel is about to close when write to the channel, so they locked each other?

caozhiyuan commented 6 years ago

Nuget pkg has some bugs use lastest branch dev