You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copy/paste Morsel example application (but change port number):
using Morsel
app = Morsel.app()
route(app, GET | POST | PUT, "/") do req, res
"This is the root"
end
get(app, "/about") do req, res
"This app is running on Morsel"
end
start(app, 8080)
but because it's deployed in redhat openshift environment it fail with next error:
ERROR: I/O object not initialized
Going deeper i try with a socket server in same environment (without Morsel):
server = listen(8080)
while true
conn = accept(server)
@async begin
try
while true
line = readline(conn)
println(line)
write(conn, line)
end
catch ex
print("connection ended with error $ex")
end
end
end
failed again: ERROR: cannot bind to port, may already be in use or access denied
but after i use ip address that openshift specify in environment var $OPENSHIFT_JULIA_IP, it works without problems, every time:
server = listen(ip"xxx.x.xxx.xxx", 8080)
...
# always works!!
I copy/paste Morsel example application (but change port number):
but because it's deployed in redhat openshift environment it fail with next error:
ERROR: I/O object not initialized
Going deeper i try with a socket server in same environment (without Morsel):
failed again:
ERROR: cannot bind to port, may already be in use or access denied
but after i use ip address that openshift specify in environment var $OPENSHIFT_JULIA_IP, it works without problems, every time:
is possible bind to particular ip address?
The text was updated successfully, but these errors were encountered: