Lines Matching defs:session

7 /*	SMTP session cache glue
26 /* the generic session cache infrastructure.
32 /* smtp_save_session() stores the current session under the
37 /* smtp_reuse_nexthop() looks up a cached session by its
39 /* the session is still alive. The restored session information
43 /* smtp_reuse_addr() looks up a cached session by its server
44 /* address, and verifies that the session is still alive.
45 /* The restored session information does not include the "best
51 /* SMTP client state, including the current session, the original
111 /* smtp_save_session - save session under next-hop name and server address */
116 SMTP_SESSION *session = state->session;
144 fd = smtp_session_passivate(session, state->dest_prop, state->endp_prop);
145 state->session = 0;
148 * Save the session under the delivery request next-hop name, if
153 * bindings). The session should be idle for no more than 30 seconds or
162 * Save every good session under its physical endpoint address.
168 /* smtp_reuse_common - common session reuse code */
175 SMTP_SESSION *session;
185 session = smtp_session_activate(fd, state->iterator, state->dest_prop,
187 if (session == 0) {
188 msg_warn("%s: bad cached session attribute for %s", myname, label);
192 state->session = session;
193 session->state = state;
196 * Send an RSET probe to verify that the session is still good.
199 || (session->features & SMTP_FEATURE_RSET_REJECTED) != 0) {
200 smtp_session_free(session);
201 return (state->session = 0);
207 vstream_tweak_sock(session->stream);
214 return (session);
217 /* smtp_reuse_nexthop - reuse session cached under nexthop name */
222 SMTP_SESSION *session;
226 * Look up the session by its logical name.
237 * Re-activate the SMTP_SESSION object, and verify that the session is
240 session = smtp_reuse_common(state, fd, STR(state->dest_label));
241 return (session);
244 /* smtp_reuse_addr - reuse session cached under numerical address */
249 SMTP_SESSION *session;
262 * Look up the session by its IP address. This means that we have no
276 * Re-activate the SMTP_SESSION object, and verify that the session is
279 session = smtp_reuse_common(state, fd, STR(state->endp_label));
281 return (session);