mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
allow multiple REPL at once by seeking free port before server set up
This commit is contained in:
parent
6b7410100d
commit
9210188b71
2 changed files with 22 additions and 7 deletions
|
@ -6,7 +6,8 @@ import importlib as __importlib
|
|||
import io as __io
|
||||
|
||||
__server_socket = __socket.socket()
|
||||
__server_socket.bind(('0.0.0.0', 8736))
|
||||
# DummyVM will replace this __PORT__ with free port
|
||||
__server_socket.bind(('127.0.0.1', __PORT__))
|
||||
__server_socket.listen(1)
|
||||
(__client_socket, __client_address) = __server_socket.accept()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue