On 12 Aug 2018, at 14:49, ga...@zoozbit.com wrote:I have created a simple vertx tcp server using Jenkovs tutorial and a simple tcp client to send messages to the server.If I try to send a fairly small string, it works perfectly fine.The problem happens when I try to send a big string. When I try to send a big string the vertx tcp server cuts my message and I get 2 separate messages instead of one, the first of which containing some part of the original string, and the second one containing the rest of the string.If I want to send 100 fairly large messages the server starts splitting my messages and I cant distinguish between the end of a message and the start of a new one.
I want to be able to send big strings consistently without them getting cut and messed with by the server.If thats not possible then I could use a way of distinguishing between my messages.
Also, I have worked with vertx before and had no such problem with HTTP based connections.
If you need any more information i would be happy to provide.Thanks,Gal
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/e6e2d2ab-a60f-4436-947e-94033c6e9f6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def server = vertx.createNetServer()
server.connectHandler({ socket ->
socket.handler(RecordParser.newDelimited("\n", { buffer ->
// buffer contains your (complete) message
}))
})
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/1bf80028-a747-46de-ba40-745476502218%40googlegroups.com.