From: Youness A. <zy...@ho...> - 2003-06-14 22:43:17
|
Hi, while I was using the block thing yesterday, I noticed that amsn had a bug, it told me "too many opened files" , in the /proc filesystem, there was 1000 files opened, all pointing to sockets. I found what the problem was. When we receive a SB CLOSED command, we close the sb, but we don't close the socket for the sb. in the ::MSN::CloseSB we have : catch {close [sb get $sbn oldsock]} res and I added this after that line : puts "$res" everytime it prints this : can not find channel named "" So that makes an opened socket everytime you close an sb, someone leaves conversation, etc... which make a lot of unclosed file descriptors... we need to change this in order to avoir having those 1000 opened files again. The solution I found was to replace the sb get command with $oldsock and it works but maybe Alvaro, you wanted to use the sb function because of some queuing issues... so I won't commit that for now. We need to fix that bug in the sb function asap. KaKaRoTo _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus |