Skip to content

[SR-2107] LIBDispatch DispatchIO read Max Int not reading until EOF #733

Open
@swift-ci

Description

@swift-ci
Previous ID SR-2107
Radar None
Original Reporter sandmman (JIRA User)
Type Bug
Environment

OSX Xcode 8

Additional Detail from JIRA
Votes 1
Component/s libdispatch
Labels Bug, SDKOverlay
Assignee None
Priority Medium

md5: 8a4cf83f85fd0da59a4731c667e0be19

Issue Description:

Although the previous iteration of dispatch_io_read() allows you to pass the value SIZE_MAX as the length in order to read the entire file until an EOF character is reached, DispatchIO.read() no longer supports this. Instead giving the value ```Int.max``` leads the channel to wait indefinitely until the max size is available to read.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions