Skip to content

localhost can't receive packet when DatagramSocket immediately closed after send #35

Description

@auntyellow
		try (DatagramSocket socket = new DatagramSocket()) {
			DatagramPacket packet = new DatagramPacket(new byte[16], 16,
					new InetSocketAddress("localhost", 5514));
			socket.send(packet);
			// Thread.sleep(2); // sleep(1) doesn't work
		}

Occurs under 1.8.0_401-b10 64-bit server and Windows 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions