Skip to content

Replace deprecated blocking property of Socket#5538

Merged
unixfox merged 3 commits intoiv-org:masterfrom
Fijxu:fix-deprecated-socket
Dec 19, 2025
Merged

Replace deprecated blocking property of Socket#5538
unixfox merged 3 commits intoiv-org:masterfrom
Fijxu:fix-deprecated-socket

Conversation

@Fijxu
Copy link
Member

@Fijxu Fijxu commented Nov 18, 2025

This replaces the deprecated argument blocking and uses Socket.set_blocking(fd, value) instead.
Fixes a warning in the compiler for Crystal >=1.18.0.

crystal-lang/crystal#16033

@unixfox unixfox requested a review from syeopite November 18, 2025 16:09
Comment on lines +8 to +9
super(addrinfo.family, addrinfo.type, addrinfo.protocol)
Socket.set_blocking(self.fd, blocking)
Copy link
Member

@SamantazFox SamantazFox Nov 22, 2025

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. That should do it!

This replaces the deprecated argument `blocking` and uses
`Socket.set_blocking(fd, value)` instead.

Fixes a warning in the compiler

crystal-lang/crystal#16033
@unixfox unixfox force-pushed the fix-deprecated-socket branch from 11ae572 to d6b3e41 Compare December 19, 2025 12:16
@unixfox
Copy link
Member

unixfox commented Dec 19, 2025

Rebased.

@unixfox unixfox force-pushed the fix-deprecated-socket branch from dfdb458 to c0adb7e Compare December 19, 2025 13:56
@unixfox unixfox merged commit bf17d53 into iv-org:master Dec 19, 2025
9 checks passed
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.

3 participants