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

Custom conn factory and support maxInboundMessageBodySizeBytes #991

Closed
wants to merge 8 commits into from

Conversation

geirolz
Copy link
Collaborator

@geirolz geirolz commented Sep 26, 2024

Address #990

@geirolz geirolz changed the title allow-custom-connection-factory Custom conn factory and support maxInboundMessageBodySizeBytes Sep 26, 2024
@@ -125,7 +125,7 @@ object ConnectionResource {
): F[Connection[Resource[F, *]]] =
Sync[F]
.delay {
val factory = new ConnectionFactory()
val factory = conf.connectionFactory.getOrElse(new ConnectionFactory())
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would rather have one make function with a connection factory and another with configs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It isn't that easy unfortunately - I'll try again asap

clientProvidedConnectionName: Option[String]
clientProvidedConnectionName: Option[String],
maxInboundMessageBodySizeBytes: Int,
connectionFactory: Option[ConnectionFactory]
Copy link
Collaborator

Choose a reason for hiding this comment

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

If there will be two make functions, it's not needed to mix config values with a java connection factory

@geirolz geirolz modified the milestones: 5.3.0, v5.3.1 Oct 26, 2024
@geirolz geirolz self-assigned this Oct 31, 2024
@geirolz geirolz closed this Nov 4, 2024
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