Skip to content

Commit

Permalink
Removed old code
Browse files Browse the repository at this point in the history
  • Loading branch information
voidmain committed Feb 7, 2024
1 parent cfa80b6 commit 1eb4b0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
1 change: 1 addition & 0 deletions java-http.ipr
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,7 @@
</component>
<component name="ProjectRunConfigurationManager">
<configuration default="true" type="TestNG">
<module name="java-http" />
<shortenClasspath name="NONE" />
<useClassPathOnly />
<option name="SUITE_NAME" value="" />
Expand Down
28 changes: 0 additions & 28 deletions src/main/java/io/fusionauth/http/server/HTTPServerThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,34 +126,6 @@ public void notifyNow() {
return;
}

// // Update the keys based on any changes to the processor state
// var keys = List.copyOf(selector.keys());
// for (SelectionKey key : keys) {
// try {
// // If the key is toast, skip it
// if (!key.isValid()) {
// continue;
// }
//
// HTTPProcessor processor = (HTTPProcessor) key.attachment();
// if (processor == null) { // No processor for you!
// continue;
// }
//
// ProcessorState state = processor.state();
// if (state == ProcessorState.Read && key.interestOps() != SelectionKey.OP_READ) {
// logger.debug("Flipping a SelectionKey to Read because it wasn't in the right state");
// key.interestOps(SelectionKey.OP_READ);
// } else if (state == ProcessorState.Write && key.interestOps() != SelectionKey.OP_WRITE) {
// logger.debug("Flipping a SelectionKey to Write because it wasn't in the right state");
// key.interestOps(SelectionKey.OP_WRITE);
// }
// } catch (Throwable t) {
// // Smother since the key is likely invalid
// logger.debug("Exception occurred while trying to update a key", t);
// }
// }

// Wake-up! Time to put on a little make-up!
selector.wakeup();
}
Expand Down

0 comments on commit 1eb4b0f

Please sign in to comment.