提供新协议识别函数quic_protocol_identify,对外屏蔽细节
错误返回业务层的状态,导致丢包不成功
This commit is contained in:
@@ -37,13 +37,11 @@ static __attribute__((__used__)) const char * GIT_VERSION_UNKNOWN = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
const char QUIC_VERSION_20200601=0;
|
||||
const char QUIC_VERSION_20200603=0;
|
||||
|
||||
int quic_init_stream(void **pme, int thread_seq)
|
||||
{
|
||||
struct _quic_context *_context=(struct _quic_context *)*pme;
|
||||
|
||||
_context=(struct _quic_context *)dictator_malloc(thread_seq, sizeof(struct _quic_context));
|
||||
struct _quic_context *_context=(struct _quic_context *)dictator_malloc(thread_seq, sizeof(struct _quic_context));
|
||||
memset(_context, 0, sizeof(struct _quic_context));
|
||||
|
||||
*pme=(void*)_context;
|
||||
@@ -72,7 +70,7 @@ void quic_release_exts(int thread_seq, quic_tlv_t *ext_tags, int ext_tag_num)
|
||||
|
||||
}
|
||||
|
||||
void quic_release_stream(struct streaminfo *a_tcp, void** pme, int thread_seq)
|
||||
void quic_release_stream(void** pme, int thread_seq)
|
||||
{
|
||||
struct _quic_context *_context = (struct _quic_context *)*pme;
|
||||
if(NULL!=_context)
|
||||
@@ -273,12 +271,11 @@ extern "C" char QUIC_ENTRY(struct streaminfo *pstream, void**pme, int thread_seq
|
||||
|
||||
if(ret&APP_STATE_DROPME|| pstream->opstate==OP_STATE_CLOSE)
|
||||
{
|
||||
quic_release_stream(pstream, pme, thread_seq);
|
||||
quic_release_stream(pme, thread_seq);
|
||||
*pme=NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
return APP_STATE_GIVEME;
|
||||
}/*QUICNIT*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user