Go's websockets have a SetWriteDeadline() function to set the connection's network write deadline. Do I need to set it before every data sending or it can be done just once when the connection is created?
2条回答 默认 最新
- dongmin4052 2017-03-06 03:35关注
Set it once.
PS I checked it myself, it's a simple code.
解决 无用评论 打赏 举报