Method for multiplexing HTTP channels and terminal

    公开(公告)号:US12126523B2

    公开(公告)日:2024-10-22

    申请号:US17839154

    申请日:2022-06-13

    摘要: This application provides a method for multiplexing HTTP channels. The method includes: sending, by the terminal, a first HTTP request to a first server through a first HTTP channel, to request first data; after receiving a first HTTP response returned by the first server, receiving, through the first HTTP channel, a first part that is of the first data and that is sent by the first server; and if a size that is of the first data and that is carried in the first HTTP response is greater than a first threshold, generating a second HTTP request, and sending a second HTTP request to a second server through a second HTTP channel, to request a second part of the first data; and after receiving the first part of the first data, sending control signaling to the first server, to disconnect the first HTTP channel.

    Data transmission method and electronic device

    公开(公告)号:US11412437B2

    公开(公告)日:2022-08-09

    申请号:US17262638

    申请日:2018-10-12

    摘要: This application provides a data transmission method and an electronic device. The method includes: establishing, by an electronic device, a multipath transmission control protocol MPTCP connection to a first application server, where the MPTCP connection includes a first TCP connection and a second TCP connection, and a data transmission delay of the first TCP connection is less than a data transmission delay of the second TCP connection; and receiving, by the electronic device, indication information from the first application server, where the indication information includes a type identifier used to indicate a type of a data stream sent by the first application server; receiving, by the electronic device preferentially by using the first TCP connection or the second TCP connection, the data stream from the first application server according to the indication information.