Incremenet connection references. * * Inside a connection handler, we guarantee refs >= 1 so it is always * safe to connClose(). * * In other cases where we don't want to prematurely lose the connection, * it can go beyond 1 as well; currently it is only done by connAccept(). */
| 50 | * it can go beyond 1 as well; currently it is only done by connAccept(). |
| 51 | */ |
| 52 | static inline void connIncrRefs(connection *conn) { |
| 53 | conn->refs++; |
| 54 | } |
| 55 | |
| 56 | /* Decrement connection references. |
| 57 | * |
no outgoing calls
no test coverage detected