How to delete a node in EB Tree

2011-03-09 Thread xiaoxin
Hello:
   I am try to delete the proxy because some task. and reload the new 
proxy. and then use check_config_validity.
   but I get the problem that 
   I use  the fallowing code in delete_proxy() (custom function)

 /* p = proxy */
   786 if (!p->uuid){
  787 eb32_delete(&p->conf.id);
  788 }
 
   I clear all the proxy, but when i use
 
  next_pxid = get_next_id(&used_proxy_id, next_pxid);

  I get "segment fault". 
  I thought the whole tree should be empty, but not. why? 
  Am I using the right eb tree api?
  

Thanks! 





when haproxy will invoke hijacker?

2010-05-13 Thread xiaoxin
Hello:
   Now I am adding a extra function to haproxy, but when I debug, I find at 
expiration, haproxy exportes core dump on invoking hijacker, but I could not 
find when the buffer->flags ORING BF_HIJACKER, I am really confused. 
   and in 1.4.2 version hijacker are always null? how can I set this 
function? could I remove all the code in 
  


--
Mr. XiaoxinLin - 林晓鑫(分机:5529)xiao...@staff.sina.com.cn
研发中心 - 基础架构部 -基础技术 
R&D Center