Commit graph

753 commits

Author SHA1 Message Date
David Renshaw
f98e0fc6ef bump version to 0.1.9-SNAPSHOT 2021-05-31 08:45:24 -04:00
David Renshaw
01cf6c0ebf release v0.1.8 2021-05-31 08:33:52 -04:00
David Renshaw
a55b869305 implement MessageBuilder.unsafeConstructFromMessageReader() 2021-05-24 13:06:42 -04:00
David Renshaw
a078df7e4d add support for directly serializing a MessageReader
Previously, you would need to copy the message into a MessageBuilder first.
2021-05-24 11:49:20 -04:00
David Renshaw
d310db1e88 Prevent potential integer overflow in BuilderArena.allocate(). 2021-05-13 17:49:01 -04:00
David Renshaw
754184fd74 bump version numbers to 0.1.8-SNAPSHOT 2021-05-12 21:00:16 -04:00
David Renshaw
5bf2c368e3 0.1.7 release 2021-05-12 20:57:00 -04:00
David Renshaw
4ec14e39f9 be more careful about integer overflow in Serialize.read()
Previously, we were attempting to read the entire message
in one call to fillBuffer(). This was doomed to fail
if the message had more than Integer.MAX_VALUE bytes.

After this diff, we will call fillBuffer() separately for each
segment. This approach turns out to be simpler, too.
It might imply a small performance hit for messages with
many small segments, but such messages are discouraged anyway.

This diff also adds more overflow checking in the surrounding
logic.
2021-05-12 20:13:52 -04:00
David Renshaw
a6c5240790 bump version numbers to 0.1.7-SNAPSHOT 2021-05-11 21:49:54 -04:00
David Renshaw
ee7e9a0d07 publish 0.1.6 2021-05-11 21:46:25 -04:00
David Renshaw
8dbd5cf25f make new unit test less memory intensive 2021-05-11 21:12:10 -04:00
David Renshaw
eb73990798 fix potential overflow in DefaultAllocator
Fixes a bug where the allocator's `nextSize` variable could overflow
and become negative, causing more segments to be allocated than expected.

Also removes a duplicate `this.nextSize += size` statement that
likely made the problem worse.
2021-05-11 21:07:37 -04:00
David Renshaw
07e47d4104 add some documentation about the new 'no limit' option 2021-05-09 14:53:54 -04:00
David Renshaw
854997703d
Merge pull request #96 from wdu/master
Offer option to disable traversalLimitInWords
2021-05-09 14:47:02 -04:00
David Renshaw
9293ef5bf6 get things compiling again 2021-05-09 14:31:32 -04:00
Wim Dumon
cc4fa2bbc8 Offer option to disable traversalLimitInWords
Use case: large trusted input data file, mapped in memory by
MappedByteBuffer, which is often re-queried so a sensible
limit cannot be set.
2021-04-28 17:47:58 +02:00
Vaci
612252313e
Merge pull request #15 from vaci/vaci/java11-backport
Build with Java 11
2021-04-05 11:19:41 +01:00
Vaci Koblizek
950ba824b9 use java11 switches and completablefutures 2021-04-05 11:05:52 +01:00
Vaci Koblizek
1bf1228756 revert to java version 11 2021-04-05 11:05:52 +01:00
Vaci Koblizek
3d81962832 add gitlab CI to master 2021-03-19 13:39:39 +00:00
Vaci Koblizek
21b8aa6acd add gitlab CI 2021-02-24 16:36:11 +00:00
Vaci Koblizek
4f55af417f remove excess client construction from EzRpcClient 2020-12-08 16:30:07 +00:00
Vaci
2dcaebb8f3 github CI workflow 2020-12-08 16:30:07 +00:00
Vaci Koblizek
22e5ab34a9 Merge remote-tracking branch 'sandstorm/master' 2020-12-07 19:35:51 +00:00
Vaci Koblizek
59c6913d0d EzRpcServer expects internet sockets 2020-12-07 19:07:56 +00:00
Vaci Koblizek
c9dcefb153 EzRpcClient must connect synchronously 2020-12-07 19:00:49 +00:00
Vaci Koblizek
23c3c789f7 combine cleanup methods 2020-12-07 18:57:22 +00:00
Vaci Koblizek
c7621d1de3 whenMoreResolved should return null when resolved 2020-12-07 18:55:54 +00:00
David Renshaw
cf62cd4a58 Fix build on Fedora 33 2020-12-06 20:47:53 -05:00
Vaci Koblizek
21d3eba0e5 remove CompletableFutureWrapper 2020-12-05 14:55:28 +00:00
Vaci Koblizek
635bfa0d62 imports 2020-12-05 14:04:19 +00:00
David Renshaw
a081a37140 remove travis config
TravisCI is no longer free starting January 2021.
We will use Github Actions instead.
2020-12-04 17:15:16 -05:00
David Renshaw
ca355af0c4 add github actions config 2020-12-04 17:08:31 -05:00
Vaci Koblizek
ecd034e78e add calculator example 2020-12-03 15:52:00 +00:00
Vaci Koblizek
25c50b105d moar capTable context maintenance 2020-12-03 15:06:35 +00:00
Vaci Koblizek
196b82515c ensure StructBuilders and StructLists maintain capTable context 2020-12-03 14:25:15 +00:00
Vaci Koblizek
f74ad80dea remove cancellation completion for now 2020-12-03 14:25:15 +00:00
Vaci Koblizek
998b569d4c add ez-rpc 2020-12-03 12:30:00 +00:00
Vaci Koblizek
e3eabe6476 copy params in direct tail call
and remove invalid override in PipelineClient
2020-12-03 12:11:57 +00:00
Vaci Koblizek
53eeed97e2 make direct call if QueuedClient has resolved 2020-12-01 17:12:49 +00:00
Vaci Koblizek
3b1f5f416c use lists for queued calls, clean up on resolution 2020-12-01 17:08:27 +00:00
Vaci Koblizek
837f1b324c add AnyList 2020-11-30 20:22:36 +00:00
Vaci Koblizek
e9493cf2e1 ensure group access pipelines are created 2020-11-30 19:21:20 +00:00
Vaci Koblizek
2b5bf0eb21 tidy up branding and implement QueuedClient,getBrand() correctly 2020-11-30 18:52:28 +00:00
Vaci Koblizek
c04bdb8088 add clienthook commentary 2020-11-30 18:42:04 +00:00
Vaci Koblizek
d02e460f06 tidy up response and pipeline construction 2020-11-30 17:47:37 +00:00
Vaci Koblizek
c66250f492 remove sizeHint branch from new outgoing messages 2020-11-28 10:23:21 +00:00
Vaci Koblizek
66ee9471f9 replace Integers with FileDescriptors 2020-11-28 09:55:53 +00:00
Vaci Koblizek
ab44843b12 QueuedClient should stop queuing calls once it has resolved 2020-11-27 15:24:41 +00:00
Vaci Koblizek
789d2df6e4 replace PipelineOp[] with short[] 2020-11-27 13:30:35 +00:00