Closed t1hq closed 11 months ago
Hi. Could it be the case that your server never encounters the line terminator because BufRead::split
removes the split character \n
from the end of the line
?
You're right! That saves the day! Appreciate the help
I've been using the following handler for a while, and it works like a charm:
but recently i noticed some failure(server disconnected or winsock error 10053), when loading some file larger than my ram.
my guess is the program consumes all of the ram, so it broke, so i'm changing the code to utilize buffered reader:
now the program only load the first line of the file to the db table, do I mistake something somewhere?