Skip to content

client: batching commands #203

Open
Open
@emersion

Description

@emersion

Right now clients always wait for the server reply for a command before sending the next one. This causes some unnecessary latency due to roundtrips.

Possible extended API to allow clients to send command batches:

type ClientBatch struct {}

func (*Client) Batch() *ClientBatch

func (*ClientBatch) Mail(from string) *ClientBatch
func (*ClientBatch) Rcpt(to string) *ClientBatch
func (*ClientBatch) Data() io.WriteCloser
func (*ClientBatch) Wait() error

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions