[Serdev] CVS:commitlog: sip_router tcp_main.c tcp_read.c

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Feb 27 00:13:23 CET 2009


andrei      2009/02/27 00:13:23 CET

  SER CVS Repository

  Modified files:
    .                    tcp_main.c tcp_read.c 
  Log:
  tcp: blacklist at tcp level if possible
  
  - automatically blacklist destinations if connecting to them fails
    (BLST_ERR_CONNECT) or send fails (BLST_ERR_SEND), either due to a
    protocol error (RST, protocol level timeout a.s.o), or because
    of a ser level send/connect timeout.
   Note: in this cases the sip_msg parameter of the blacklist will
   be null (since in general the message triggering the error is not
   known), so if you register a blacklist callback you should make
   sure it works with null sip_msgs too.
  
  - if a connection is in a connect pending state (S_CONN_CONNECT)
    and something is read on it, move it into established state
    (S_CONN_OK). This can happen only in tcp async mode.
  
  - fix transition directly to S_CONN_OK from S_CONN_PENDING (should go
    through S_CONN_CONNECT first)
  
  Revision  Changes    Path
  1.133     +115 -7    sip_router/tcp_main.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/tcp_main.c.diff?r1=1.132&r2=1.133
  1.51      +26 -3     sip_router/tcp_read.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/tcp_read.c.diff?r1=1.50&r2=1.51


More information about the Serdev mailing list