MCPcopy Create free account
hub / github.com/ebarlas/microhttp / run

Method run

src/main/java/org/microhttp/EventLoop.java:82–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 private void run() {
83 try {
84 doRun();
85 } catch (IOException e) {
86 if (logger.enabled()) {
87 logger.log(e, new LogEntry("event", "event_loop_terminate"));
88 }
89 stop.set(true); // stop the world on critical error
90 } finally {
91 closeQuietly(selector);
92 closeQuietly(serverSocketChannel);
93 }
94 }
95
96 private void doRun() throws IOException {
97 while (!stop.get()) {

Callers

nothing calls this directly

Calls 4

doRunMethod · 0.95
closeQuietlyMethod · 0.80
enabledMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected