-
Notifications
You must be signed in to change notification settings - Fork 0
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
[TS-1163] Initial version #1
base: master
Are you sure you want to change the base?
Conversation
3a249b2
to
6fa9296
Compare
@@ -0,0 +1,23 @@ | |||
name: CI |
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.
could you please discuss @Xanclry about using common workflow from .github repository
https://github.com/th2-net/.github/pull/7/files
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.
@Xanclry could you please help? Because I don't really understand what should be done here. Should I add some of the workflows from the PR above?
api platform('com.exactpro.th2:bom:3.2.0') | ||
|
||
implementation 'com.exactpro.th2:conn-dirty-tcp-core:2.0.0' | ||
implementation 'com.exactpro.th2:common:3.40.0-TH2-3789-2817159492-SNAPSHOT' |
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.
Could we use release version instead
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.
This is a dev build with session-group support. Did we release session-groups?
src/main/kotlin/com/exactpro/th2/codec/soup/bin/tcp/SoupBinTcpHandler.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/exactpro/th2/codec/soup/bin/tcp/SoupBinTcpHandler.kt
Outdated
Show resolved
Hide resolved
|
||
while (channel.isOpen && !isLoggedIn) { | ||
logger.warn { "Waiting for login to send a message" } | ||
Thread.sleep(1000) |
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.
Please replace to ReenteredLock.Condition technology instead of sleeping constant time
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.
Does it really worth it here? Especially considering that messages are rarely sent by a user
src/main/kotlin/com/exactpro/th2/codec/soup/bin/tcp/SoupBinTcpHandler.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/exactpro/th2/codec/soup/bin/tcp/SoupBinTcpHandler.kt
Show resolved
Hide resolved
logger.debug { "Sending client heartbeat - session: $session" } | ||
writeShort(EMPTY_MESSAGE_LENGTH) | ||
writeByte(CLIENT_HEARTBEAT_TYPE) | ||
channel.send(this).get() |
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.
Should we wait operation complete in this case?
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.
We do wait
No description provided.