common: added some trans options used in fast path
This commit is contained in:
parent
221b049ca5
commit
f6fb5a32ed
@ -282,7 +282,10 @@ trans_check_wait_objs(struct trans *self)
|
||||
if (self->trans_data_in != 0)
|
||||
{
|
||||
rv = self->trans_data_in(self);
|
||||
init_stream(self->in_s, 0);
|
||||
if (self->no_stream_init_on_data_in == 0)
|
||||
{
|
||||
init_stream(self->in_s, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,6 +57,8 @@ struct trans
|
||||
struct stream* wait_s;
|
||||
char addr[256];
|
||||
char port[256];
|
||||
int no_stream_init_on_data_in;
|
||||
int extra_flags; /* user defined */
|
||||
};
|
||||
|
||||
struct trans* APP_CC
|
||||
|
Loading…
Reference in New Issue
Block a user