diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-02-25 20:33:19 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-02-25 20:33:19 -0800 |
commit | f6fb5a32ed0ccc341eae749abd5b44cd2a73903c (patch) | |
tree | ed03cfe3139098d2c080556dfa203a3759c82a80 | |
parent | 221b049ca5beffc457cd4189b787120972c0eec4 (diff) | |
download | xrdp-proprietary-f6fb5a32ed0ccc341eae749abd5b44cd2a73903c.tar.gz xrdp-proprietary-f6fb5a32ed0ccc341eae749abd5b44cd2a73903c.zip |
common: added some trans options used in fast path
-rw-r--r-- | common/trans.c | 5 | ||||
-rw-r--r-- | common/trans.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/common/trans.c b/common/trans.c index c418877e..aced0667 100644 --- a/common/trans.c +++ b/common/trans.c @@ -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); + } } } } diff --git a/common/trans.h b/common/trans.h index 31c90721..c2e5e0df 100644 --- a/common/trans.h +++ b/common/trans.h @@ -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 |