Morsel.jl icon indicating copy to clipboard operation
Morsel.jl copied to clipboard

How do you stop the server in the REPL?

Open sbromberger opened this issue 10 years ago • 3 comments

julia> start(app,8000)
Morsel is listening on 8000...

^C doesn't terminate it. At this time, I have to kill the REPL to stop the server.

sbromberger avatar Jan 06 '15 17:01 sbromberger

I have the same question.

cwiese avatar Jan 28 '15 00:01 cwiese

Here, It called @async process_client(.....) and in process_client it did "try, catch , rethrow" things.

When we type "ctrl + c", it is a error. But it hasn't been throw (immediately) up somehow ...

The code below will produce similar problem ("ctrl + c" cause the code stop, but not immediately), please try this.

function inter()
    try
    catch e
        rethrow()
    end
end

function async_inter()
    while true
        @async inter()
    end
end

async_inter()

yfractal avatar Feb 10 '15 06:02 yfractal

Also encountering this. cc: @JeffBezanson

StefanKarpinski avatar Mar 12 '15 14:03 StefanKarpinski