Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[TS-1163] Initial version #1

wants to merge 1 commit into from

Conversation

cordwelt
Copy link
Contributor

No description provided.

@cordwelt cordwelt force-pushed the ts-1163 branch 7 times, most recently from 3a249b2 to 6fa9296 Compare October 18, 2022 08:20
@@ -0,0 +1,23 @@
name: CI

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

Copy link
Contributor Author

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'

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

Copy link
Contributor Author

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?


while (channel.isOpen && !isLoggedIn) {
logger.warn { "Waiting for login to send a message" }
Thread.sleep(1000)

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

Copy link
Contributor Author

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

logger.debug { "Sending client heartbeat - session: $session" }
writeShort(EMPTY_MESSAGE_LENGTH)
writeByte(CLIENT_HEARTBEAT_TYPE)
channel.send(this).get()

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do wait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants