daml/libs-scala
Samir Talwar d6fc2bbb58
ledger-api-client + participant-integration-api: Increase the default maximum inbound error size, and truncate errors well before that. (#6807)
* participant-integration-api: `GrpcServerOwner` -> `GrpcServer.Owner`.

Mostly so I can create a test class named `GrpcServerSpec`.

* ports: Move the free port search from postgresql-testing.

* participant-integration-api: Test the basics of GrpcServer.

This uses the HelloService to make sure the server behaves normally.

* ledger-api-client: Extract out channel configuration from LedgerClient.

So we can test it independently of the LedgerClient itself.

* ledger-api-client: Increase the default maximum inbound header size.

Increased from 8 KB to 1 MB.

* participant-integration-api: Reduce the maximum error message size.

Truncate GRPC error descriptions to 256 KB.

* participant-integration-api: Use `Port.Dynamic` instead of `FreePort`.

In tests.

* participant-integration-api: Explicit null checks when they're shorter.

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* ledger-api-client: Reduce the max inbound message size back to 8 KB.

And reduce the maximum size of an error description pushed out by the
server accordingly.

CHANGELOG_BEGIN
- [Integration Kit] Truncate GPRC error messages at 4 KB. This ensures
  that we won't trigger a protocol error when sending errors to the
  client.
CHANGELOG_END

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2020-07-21 15:50:33 +00:00
..
auth-utils Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
build-info Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
contextualized-logging disable warts.Any and remove most suppressions (#6132) 2020-05-28 16:53:41 +00:00
direct-execution-context Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
grpc-utils Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
ports ledger-api-client + participant-integration-api: Increase the default maximum inbound error size, and truncate errors well before that. (#6807) 2020-07-21 15:50:33 +00:00
postgresql-testing ledger-api-client + participant-integration-api: Increase the default maximum inbound error size, and truncate errors well before that. (#6807) 2020-07-21 15:50:33 +00:00
resources Always use the latest ledger config (#5669) 2020-05-06 12:12:23 +02:00
resources-akka Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
scalatest-utils set scalac -Xsource:2.13 -Ypartial-unification globally (#6469) 2020-06-24 16:51:24 -04:00
timer-utils Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00