SignalEof

Trait SignalEof 

Source
pub trait SignalEof {
    // Required method
    fn eof(&mut self) -> Result<()>;
}
Expand description

The ability to signal EOF to the server side so that it can stop serving for this fetch request.

Required Methods§

Source

fn eof(&mut self) -> Result<()>

Since the git protocol is tunneled over an existing connection, we can’t signal the end of the protocol via the usual means, which is to close the connection. Git also doesn’t have any special message we can send to signal the end of the protocol.

Hence, there’s no other way for the server to know that we’re done sending requests than to send a special message outside the git protocol. This message can then be processed by the remote worker to end the protocol. We use the special “eof” control message for this.

Implementors§