-
Notifications
You must be signed in to change notification settings - Fork 0
Create/Read working in quick and dirty PoC #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create/Read working in quick and dirty PoC #6
Conversation
| if (serverCertVerificationDisabled) { | ||
| sslContextBuilder.trustManager(InsecureTrustManagerFactory.INSTANCE); // disable cert verification | ||
| } | ||
| sslContextBuilder.trustManager(InsecureTrustManagerFactory.INSTANCE); // disable cert verification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming this would be removed after we do another round of cleanup, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should remove it now honestly - I think it's risky to leave this as a TODO
| OperationType.Read, ResourceType.Document, path, requestHeaders, options); | ||
|
|
||
| request.useThinProxy = Configs.isThinClientEnabled() && request.useGatewayMode ? true : false; | ||
| request.useThinProxy = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Remove this I think right? Leaving comment here for future tracking, non-blocking
| public void encode(final ByteBuf out, boolean forThinClient) { | ||
|
|
||
| final int expectedLength = RntbdRequestFrame.LENGTH + this.headers.computeLength(); | ||
| final int effectivePayloadSize = this.payload != null && this.payload.length > 0 ? this.payload.length + 4 : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking: why +4? I see it's only being used for logging but just wondering where this number came from
nehrao1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much Fabian - not sure if always disabling cert verification would be a good idea and I am scared we would forget to fix this later, could you please comment on this? Otherwise LGTM.
No description provided.