Skip to content

Resource allocation in protocol handlers #2882

@coot

Description

@coot

@dcoutt noted:

It's probably a general thing we should clarify in our docs for typed protocols
and the network framework etc:Do not allocate resources within a protocol
handler. Have all resources allocated (with appropriate bracketing) and passed
into the protocol handler.Protocol handlers get killed unceremnoiusly, and the
(continuation) style in which they are written does not support resource
cleanup.

Metadata

Metadata

Assignees

Labels

PI-9Issues / PRs related to PI-9documentationNetwork Documentation related taskstyped-protocolsIssues related to typed-protocols

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions