Skip to content

added support for non-blocking#185

Merged
stefanak-michal merged 7 commits intomasterfrom
socket-non-blocking-option
Jan 28, 2026
Merged

added support for non-blocking#185
stefanak-michal merged 7 commits intomasterfrom
socket-non-blocking-option

Conversation

@stefanak-michal
Copy link
Owner

No description provided.

@stefanak-michal stefanak-michal added the enhancement New feature or request label Jan 25, 2026
@stefanak-michal stefanak-michal self-assigned this Jan 25, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for non-blocking socket operations to the Socket connection class. The implementation allows users to configure whether sockets operate in blocking or non-blocking mode, with appropriate timeout handling for non-blocking scenarios.

Changes:

  • Added a public $blocking property to control socket blocking mode (default: true)
  • Implemented non-blocking connection handling with proper timeout management
  • Added helper methods waitForWritable() and waitForReadable() to manage non-blocking I/O operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

stefanak-michal and others added 2 commits January 27, 2026 21:41
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@stefanak-michal
Copy link
Owner Author

This is not about non-blocking anymore. It's just general improvement of Socket class and some tests.

@stefanak-michal stefanak-michal marked this pull request as ready for review January 27, 2026 13:46
@stefanak-michal stefanak-michal merged commit 0f7f3ee into master Jan 28, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant