Skip to content

Redesign Accept operation for cross-platform support #55

@EdmondDantes

Description

@EdmondDantes

Redesign Accept Operation for Cross-Platform Support

Description

On Windows, the current implementation of the Accept operation in Zend Async API causes errors such as:
"Warning: stream_socket_accept(): Accept failed: The operation on a non-blocking socket cannot be completed immediately in "

This indicates that the API is unstable and platform-dependent.

Proposed Changes

  1. Create a dedicated API for Zend Async API responsible for handling Accept.
  2. Implement the accept operation to work consistently across all supported operating systems (Windows, Linux, BSD, macOS).
    • Account for differences in socket APIs and flags (Winsock vs POSIX).
    • Ensure unified behavior and a consistent set of error codes.

Goal

Provide a cross-platform implementation of Accept, eliminate platform-specific failures, and unify the behavior of Zend Async API.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions