Posted in

Go语言进阶项目Context深度陷阱:超时传递断裂、WithValue滥用导致内存泄漏、cancel goroutine不彻底的3类高频故障复现与修复

第一章:Go语言进阶项目Cont … Go语言进阶项目Context深度陷阱:超时传递断裂、WithValue滥用导致内存泄漏、cancel goroutine不彻底的3类高频故障复现与修复Read more

Posted in

Go Context取消传播失效?Deadline跨goroutine丢失、WithValue内存泄漏、CancelFunc未调用的3大生产事故复盘

第一章:Go Context机制 … Go Context取消传播失效?Deadline跨goroutine丢失、WithValue内存泄漏、CancelFunc未调用的3大生产事故复盘Read more

Posted in

【Go Map安全红线】:禁止在HTTP handler中共享map而不加锁?不,真正危险的是context.WithValue传递map引用!

第一章:Go Map安全红线的真 … 【Go Map安全红线】:禁止在HTTP handler中共享map而不加锁?不,真正危险的是context.WithValue传递map引用!Read more