glaciall / jtt1078-video-server

基于JT/T 1078标准实现的视频转播服务器
Other
297 stars 136 forks source link

销毁线程时,如果有锁wait就不会销毁线程,导致线程数一直增加最终导致服务死掉 #21

Closed 295477887 closed 4 years ago

295477887 commented 4 years ago

压测时线程数一直增长,最终OOM,发现调用interrupt销毁线程时,如果线程内有wait、sleep等方法,就会销毁失败,直接抛出InterruptedException异常。在捕获到该异常时,应退出该线程

glaciall commented 4 years ago

多谢多谢