when haproxy will invoke hijacker(final)

From: xiaoxin <xiaoxin#staff.sina.com.cn>
Date: Thu, 13 May 2010 15:49:54 +0800


       Sorry to send an uncompleted mail before.
       Now I am adding an extra function to haproxy, but when I debug, I find at expiration, haproxy  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 session.c
       if (unlikely(s->rep->flags & BF_HIJACK)) {
		/* In inject mode, we wake up everytime something has
		 * happened on the write side of the buffer.
		unsigned int flags = s->rep->flags;

		if ((s->rep->flags & (BF_WRITE_PARTIAL|BF_WRITE_ERROR|BF_SHUTW)) &&
		    !(s->rep->flags & BF_FULL)) {
			s->rep->hijacker(s, s->rep);

if ((s->rep->flags ^ flags) & BF_MASK_STATIC) { rpf_last = s->rep->flags; goto resync_response;
} ===================== Thanks! Mr. XiaoxinLin xiaoxin#staff.sina.com.cn
Received on 2010/05/13 09:49

This archive was generated by hypermail 2.2.0 : 2010/05/13 10:00 CEST