[OpenSIPS-Devel] [OpenSIPS/opensips] a3deec: Properly close FDs

Vlad Paiu vladpaiu at opensips.org
Fri Mar 6 18:22:16 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a3deecca5aa0ea7fe10cff5bd1ff59aa4aa9c0a0
      https://github.com/OpenSIPS/opensips/commit/a3deecca5aa0ea7fe10cff5bd1ff59aa4aa9c0a0
  Author: Vlad Paiu <vladpaiu at opensips.org>
  Date:   2015-03-06 (Fri, 06 Mar 2015)

  Changed paths:
    M net/net_tcp.c
    M net/net_tcp_proc.c
    M net/proto_tcp/proto_tcp.c
    M reactor_defs.h

  Log Message:
  -----------
  Properly close FDs
When releasing the connection in a bad state, we don't always want to close the actual FD in con ( eg. we have the con in a write context, and we have acquire the FD from main - con->fd will be from another worker's context )




More information about the Devel mailing list