Skip to content

Commit a75df2f

Browse files
committed
Update Crystal to 1.18.0.
1 parent f272255 commit a75df2f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
crystal 1.16.3
1+
crystal 1.18.0
22
mint 0.20.0
33
nodejs 20.10.0
44
yarn 1.22.19

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# We are using crystal as image we are building the binary on
2-
FROM crystallang/crystal:1.16.3-alpine AS build
2+
FROM crystallang/crystal:1.18.0-alpine AS build
33

44
# Create a build directory and set it as default
55
RUN mkdir -p /opt/mint

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
version: "2"
77
services:
88
app:
9-
image: crystallang/crystal:1.16.3-alpine
9+
image: crystallang/crystal:1.18.0-alpine
1010
working_dir: /app
1111
volumes:
1212
- .:/app

src/utils/server.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ module Mint
3838
end
3939

4040
private def port_closed?(host, port)
41-
client = Socket.tcp(Socket::Family::INET, true)
41+
client = Socket.tcp(Socket::Family::INET)
42+
Socket.set_blocking(client.fd, true)
4243
client.connect(host, port, 0.25)
4344
client.close
4445
true

0 commit comments

Comments
 (0)