Skip to content

Conversation

@huangdijia
Copy link
Member

@huangdijia huangdijia commented Nov 18, 2025

Summary

Socket Option Management

  • Added the ability to store and retrieve socket options in the Socket class
  • Implemented setSocketOption() and getSocketOption() methods
  • Updated SocketFactory to automatically set socket options when creating new sockets
  • This enhancement enables better configuration management and makes socket options accessible throughout the socket lifecycle

Changes

  • src/Socket.php: Added socket option storage and accessor methods
  • src/Socket/SocketFactory.php: Integrated socket option setting in the factory
  • Added Barrier implementation with performance optimizations

Test plan

  • Test socket option management in various scenarios
  • Ensure backward compatibility with existing socket usage
  • Run existing test suite to validate no regressions

@huangdijia huangdijia changed the title Add Barrier support and socket option management Add socket option storage capability to Socket class Nov 18, 2025
This commit adds the ability to store and retrieve socket options in the Socket class. The changes include:
- Added a protected property to store SocketOptionInterface instances
- Implemented setSocketOption() and getSocketOption() methods for managing socket options
- Updated SocketFactory to automatically set the socket option when creating a new socket

This enhancement allows for better configuration management and makes socket options accessible throughout the socket lifecycle.
Revert "更新测试工作流以支持 PHP 8.4 和 Swow 1.6.2"

This reverts commit c9c4719.

Reapply "更新测试工作流以支持 PHP 8.4 和 Swow 1.6.2"

This reverts commit 17db47f.
@limingxinleo limingxinleo merged commit 8f13ce4 into hyperf:master Nov 19, 2025
16 of 32 checks passed
@huangdijia huangdijia deleted the add-barrier branch November 19, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants