Bug 480026 - Truncated UDP packet since 3.1.0
Summary: Truncated UDP packet since 3.1.0
Status: NEW
Alias: None
Product: Vertx
Classification: RT
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: Other Linux
: P3 normal
Target Milestone: Unknown   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-17 09:59 EDT by Mickael Hemri CLA
Modified: 2016-01-26 05:11 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Hemri CLA 2015-10-17 09:59:40 EDT
Hi,

Since 3.1.0 update I receive truncated UDP packet.

Here below a simplified version of the code used:

Vertx vertx = VertxContext.vertx();
DatagramSocket socket = vertx.createDatagramSocket(new DatagramSocketOptions());
socket.listen(8085, "0.0.0.0", (AsyncResult<DatagramSocket> datagramSocket) -> {
    if (datagramSocket.succeeded()) {
        DatagramSocket result = datagramSocket.result();
        result.handler(datagramPacket -> doSomething(datagramPacket));
    }
});

Can you confirm this regression ?
Thanks
Comment 1 Tim Fox CLA 2015-11-09 06:28:58 EST
Thanks.

Do you have a reproducer for this?
Comment 2 Mickael Hemri CLA 2016-01-26 05:11:40 EST
(In reply to Tim Fox from comment #1)
> Thanks.
> 
> Do you have a reproducer for this?

Hi,

Sorry for the late reply.

I'm not able to reproduce this locally, it works with a simple use case (send and receive a single udp packet).
But in production almost all the received messages are truncated. Maybe it happens only with heavy load (in my case 1000 request/s)

I tried this morning with 3.2.0 and no change, I still receive truncated messages. I had to rollback to 3.0.0.


Thanks