mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Update repl_server.py
This commit is contained in:
parent
2e91472d0e
commit
846aac89a7
2 changed files with 9 additions and 1 deletions
|
@ -5,7 +5,7 @@ import sys as __sys
|
|||
import importlib as __importlib
|
||||
import io as __io
|
||||
|
||||
__server_socket = __socket.socket()
|
||||
__server_socket = __socket.socket(__socket.AF_INET, __socket.SOCK_STREAM)
|
||||
if __sys.platform == 'linux':
|
||||
__server_socket.setsockopt(__socket.SOL_SOCKET, __socket.SO_REUSEADDR, 1)
|
||||
# DummyVM will replace this __PORT__ with free port
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue