Connection

- Re-enabled validation checking
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-22 10:42:23 +02:00
parent 56d48d2645
commit 05345b8ce6
1 changed files with 12 additions and 12 deletions

View File

@ -161,22 +161,22 @@ public class Connection : Thread
*/ */
if(cast(Validatable)incomingCommand) if(cast(Validatable)incomingCommand)
{ {
// Validatable validtabaleCommand = cast(Validatable)incomingCommand; Validatable validtabaleCommand = cast(Validatable)incomingCommand;
// string reason; string reason;
// if(!validtabaleCommand.validate(reason)) if(!validtabaleCommand.validate(reason))
// { {
// logger.error("Validation failed with reason: '", reason, "'"); logger.error("Validation failed with reason: '", reason, "'");
// UnknownCommandReply unknownCmdReply = new UnknownCommandReply(reason); UnknownCommandReply unknownCmdReply = new UnknownCommandReply(reason);
// mType = MessageType.CLIENT_TO_SERVER; mType = MessageType.CLIENT_TO_SERVER;
// responseType = CommandType.UNKNOWN_COMMAND; responseType = CommandType.UNKNOWN_COMMAND;
// responseCommand = unknownCmdReply; responseCommand = unknownCmdReply;
// // TODO: Can we do this without gotos? // TODO: Can we do this without gotos?
// goto encode_n_send; goto encode_n_send;
// } }
} }
/** /**