commit | f2b9874bcf16eb99814c260f6efb645fbac8d1f9 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Apr 05 01:30:42 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Apr 06 11:37:34 2015 +0200 |
tree | 9521553739f53a83e703269566b58fbd1dcfd634 | |
parent | ce7eec91865655c7e325822621107e17b56cb2c8 [diff] |
MEDIUM: stream: isolate connection-specific initialization code In stream_accept_session(), we perform some operations that explicitly want a connection as the origin, but we'll soon have other types of origin (eg: applet). Thus change the test to ensure we only call this code with connections. Additionally, we refrain from calling fe->accept() if the origin is not a connection, because for now the only fe->accept() may only use a connection (frontend_accept).