Skip to content

There is no identification flag for multiple data packets . How can server know when the data packet stream is completed ? #228

@charankamarapu

Description

@charankamarapu

I was going through the code and came across two functions

  1. _write_more_data
  2. end_request

I have understood that we use _write_more_data for sending a packet but we know that is not the final packet from client side and next packets will be data packet , we use end_request for sending packet but we know that it is the last packet.

But I have a question - how will the server know that it needs to wait for next packet without parsing complete current packet in the case of _write_more_data because we didn't send any identification flag in the first packet saying that it is not the final packet .

Can someone please answer this query..?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions