Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with receiveFile method #78

Open
cihadoge opened this issue May 8, 2015 · 1 comment
Open

Problem with receiveFile method #78

cihadoge opened this issue May 8, 2015 · 1 comment

Comments

@cihadoge
Copy link

cihadoge commented May 8, 2015

When I call the receiveFile method with offset different than 0, it removes all the data before the offset.

Has anyone faced with this issue ?

Here is my code snippet

// We need to set file length as original file length
RandomAccessFile raf = new RandomAccessFile("download.tmp", "rw");
raf.setLength(originalFileLength);
raf.close();

File receivedFile = new File("download.tmp");
client.receiveFile(receivedFile, offset, length);
client.close();
@vector20240801
Copy link

hello, I want to change the protocol of the datanode(hadoop) to UDT, I am working on the barchart-udt.However I recieved a problem in saslHandShake that the Server can not read a integer.I saw the packet log with tcpdump on server and found when the client send the SASL_TRANSFER_MAGIC_NUMBER,there are many bad checksum:

00:54:50.334452 IP (tos 0x0, ttl 64, id 41646, offset 0, flags [DF], proto UDP (17), length 68)
    server addr.1002 > client addr.56895: [bad udp cksum 0x6833 -> 0x0de2!] UDP, length 40
00:54:50.335248 IP (tos 0x0, ttl 64, id 41647, offset 0, flags [DF], proto UDP (17), length 48)
    server addr.1002 > client addr.56895: [bad udp cksum 0x681f -> 0xf102!] UDP, length 20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants