Skip to content

[Bug]: PING frame shoud not be the first frame #499

@haojiubujian0

Description

@haojiubujian0

What happened?

使用Google浏览器对接XQUIC服务端时报错:ping frame shoud not be the first frame.
注释掉下面这段内容后,TLS能握手成功,但我不确定这样是否会导致其他问题:

/* ping frame should not be the first frame in the first initial packet */
if (conn->conn_state == XQC_CONN_STATE_SERVER_INIT
        && !(conn->conn_flag & XQC_CONN_FLAG_INIT_RECVD)) 
{
    xqc_log(conn->log, XQC_LOG_ERROR,
            "|xqc_process_ping_frame error: ping frame shoud not be the first frame|");
    return XQC_ERROR; 
}

Steps To Reproduce

Information and Steps to reproduce the behavior.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions