teragrep / rlp_03

Java RELP Server library
GNU Affero General Public License v3.0
1 stars 5 forks source link

ReadMe example code can't handle multiple connections #168

Closed StrongestNumber9 closed 4 months ago

StrongestNumber9 commented 4 months ago

Describe the bug

First connection works fine, second connection breaks down

java.lang.IllegalArgumentException: frame txn not sequencing
    at com.teragrep.rlp_03.frame.delegate.SequencingDelegate.accept(SequencingDelegate.java:85)
    at com.teragrep.rlp_03.frame.delegate.DefaultFrameDelegate.accept(DefaultFrameDelegate.java:77)
    at com.teragrep.rlp_03.channel.context.RelpReadImpl.processFrame(RelpReadImpl.java:234)
    at com.teragrep.rlp_03.channel.context.RelpReadImpl.run(RelpReadImpl.java:147)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:840)

Expected behavior

Works normally

How to reproduce

Send records, open new connection and send more records

Software version

rlp_03 7.0.2

kortemik commented 4 months ago

duplicate with #105