write_cancel_request

Function write_cancel_request 

Source
pub fn write_cancel_request(buf: &mut Vec<u8>, pid: u32, secret_key: &[u8])
Expand description

Write a CancelRequest message.

This is sent on a NEW connection to cancel a query running on another connection. The server closes the connection immediately with no response.

In protocol 3.2, the secret key is variable-length (4-256 bytes).