MCPcopy Create free account
hub / github.com/apache/thrift / run

Method run

tutorial/js/src/Httpd.java:276–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 }
275
276 public void run() {
277 System.out.println("New connection thread");
278 HttpContext context = new BasicHttpContext(null);
279 try {
280 while (!Thread.interrupted() && this.conn.isOpen()) {
281 this.httpservice.handleRequest(this.conn, context);
282 }
283 } catch (ConnectionClosedException ex) {
284 System.err.println("Client closed connection");
285 } catch (IOException ex) {
286 System.err.println("I/O error: " + ex.getMessage());
287 } catch (HttpException ex) {
288 System.err.println("Unrecoverable HTTP protocol violation: " + ex.getMessage());
289 } finally {
290 try {
291 this.conn.shutdown();
292 } catch (IOException ignore) {
293 }
294 }
295 }
296
297 }
298

Callers

nothing calls this directly

Calls 3

isOpenMethod · 0.45
getMessageMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected