Skip to content

Commit 97b0032

Browse files
committed
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
1 parent 9d6e121 commit 97b0032

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/push.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
on: push
1+
on:
2+
push:
3+
pull_request:
4+
25
name: on push
36
jobs:
47
Tests:
58
name: base
69
strategy:
710
matrix:
8-
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy3.11']
9-
# os: ['ubuntu-latest', 'windows-latest', 'macOs-latest']
11+
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', 'pypy3.11']
12+
# os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
1013
os: ['ubuntu-latest', 'windows-latest']
1114

1215
runs-on: ${{ matrix.os }}
1316
steps:
1417
- uses: actions/checkout@master
15-
- name: Setup python
18+
- name: Setup Python ${{ matrix.python }}
1619
uses: actions/setup-python@v6
1720
with:
1821
python-version: ${{ matrix.python }}
1922
allow-prereleases: true
2023
- name: prepare
21-
run: pip install -U setuptools wheel
24+
run: pip install --upgrade setuptools wheel
2225
- name: install
2326
run: pip install .[dev,ci]
2427
- name: test

oscpy/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ def listen(
255255
)
256256

257257
sock = socket.socket(family_, socket.SOCK_DGRAM)
258+
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
258259
if family == 'unix':
259260
addr = address
260261
else:

0 commit comments

Comments
 (0)