Skip to content

Commit d135bd9

Browse files
committed
Merge branch 'release/0.14'
2 parents 45e00bb + e2dcce0 commit d135bd9

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>org.reaktivity</groupId>
88
<artifactId>nukleus-proxy</artifactId>
9-
<version>0.13</version>
9+
<version>0.14</version>
1010
<name>Proxy Nukleus Implementation</name>
1111
<description>Proxy Nukleus Implementation</description>
1212
<url>https://github.com/reaktivity/nukleus-proxy.java</url>
@@ -62,7 +62,7 @@
6262

6363
<nukleus.plugin.version>0.85</nukleus.plugin.version>
6464

65-
<nukleus.proxy.spec.version>0.17</nukleus.proxy.spec.version>
65+
<nukleus.proxy.spec.version>0.18</nukleus.proxy.spec.version>
6666
<reaktor.version>0.171</reaktor.version>
6767
</properties>
6868
<dependencies>

src/main/java/org/reaktivity/nukleus/proxy/internal/stream/ProxyServerFactory.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,7 @@ private int decodeHeader(
12701270
decode:
12711271
if (length >= HEADER_V2_SIZE)
12721272
{
1273+
int anchor = progress;
12731274
DirectBuffer header = headerRO;
12741275
header.wrap(buffer, progress, HEADER_V2_SIZE);
12751276
if (!HEADER_V2.equals(header))
@@ -1279,6 +1280,9 @@ private int decodeHeader(
12791280
}
12801281

12811282
progress += HEADER_V2_SIZE;
1283+
1284+
updateCRC32C(net.crc32c, buffer, anchor, progress - anchor);
1285+
12821286
net.decoder = decodeVersion;
12831287
}
12841288

@@ -1333,23 +1337,25 @@ private int decodeCommand(
13331337
decode:
13341338
if (length > 0)
13351339
{
1340+
int anchor = progress;
13361341
int command = buffer.getByte(progress) & 0x0f;
13371342

1343+
progress++;
1344+
1345+
updateCRC32C(net.crc32c, buffer, anchor, progress - anchor);
1346+
13381347
switch (command)
13391348
{
13401349
case 0:
1341-
progress++;
13421350
net.decoder = decodeLocal;
13431351
break;
13441352
case 1:
1345-
progress++;
13461353
net.decoder = decodeProxy;
13471354
break;
13481355
default:
13491356
net.cleanup(traceId, authorization);
13501357
break decode;
13511358
}
1352-
13531359
}
13541360

13551361
return progress;

src/main/moditect/module-info.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
{
1818
requires org.reaktivity.reaktor;
1919

20-
provides org.reaktivity.nukleus.NukleusFactorySpi
20+
provides org.reaktivity.reaktor.nukleus.NukleusFactorySpi
2121
with org.reaktivity.nukleus.proxy.internal.ProxyNukleusFactorySpi;
2222

23-
provides org.reaktivity.nukleus.ControllerFactorySpi
24-
with org.reaktivity.nukleus.proxy.internal.ProxyControllerFactorySpi;
23+
provides org.reaktivity.reaktor.config.OptionsAdapterSpi
24+
with org.reaktivity.nukleus.proxy.internal.config.ProxyOptionsAdapter;
25+
26+
provides org.reaktivity.reaktor.config.ConditionAdapterSpi
27+
with org.reaktivity.nukleus.proxy.internal.config.ProxyConditionAdapter;
2528
}

0 commit comments

Comments
 (0)