954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java Sockets TCP/IP, am only getting 64K of data back on localhost and another error

Hello,

I am, for some reason only getting 64K of data back from my local host as I test my program for being able to write a text file to a server and back. The remaining of the data is all spaces instead of char's, so that the original and recieved files are the same size but the last amounts of data beyond 64K have turned to spaces instead of chars.

There is also a matter of a "java.net.SocketException: Software caused connection abort: socket write error" I don't know why this is saying this. Perhaps this problem and the above are related but I don't know how to fix it.

Any ideas would be greatly appreciated. The code and data files are attached.

Thanks,

Brian

Attachments Socket.zip (1.74KB)
Relative0
Newbie Poster
3 posts since Dec 2008
Reputation Points: 10
Solved Threads: 0
 

Any one have any ideas?

Thanks,

Brian

Relative0
Newbie Poster
3 posts since Dec 2008
Reputation Points: 10
Solved Threads: 0
 

Doesn't look to be a malware problem, so why not post this in the correct forum?

crunchie
Most Valuable Poster
Moderator
20,095 posts since Feb 2004
Reputation Points: 1,142
Solved Threads: 985
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You