Files truncated
miken32 opened this issue · comments
Anything over 34624 bytes gets truncated on save for me. Any thoughts on why this might be? Let me know if any further info is needed for reproducing.
mmm ... i seem to be unable to reproduce this. could you provide me with any additional information? from which OS do you run rmate and how do you use it ... using an ssh tunnel from your OSX machine or by allowing remote connections in textmate? thanks!
This is running from Ubuntu 10.04, Bash 4.1.5, OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k, connecting through an SSH tunnel.
I'm actually not seeing the size stay consistent, so forget the 34624 number I gave earlier. The file gets transferred over just fine, but saving it results in truncation.
Here's SSH debug; the only difference I see between the two is that your script uses the IPv6 interface, Textmate's uses IPv4.
root@host:~# ls -l foo
-rw------- 1 root root 63787 2012-10-04 16:30 foo
root@host:~# /usr/local/bin/rmate.sh foo
debug1: client_input_channel_open: ctype forwarded-tcpip rchan 3 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen localhost port 52698, originator ::1 port 45605
debug1: connect_next: host localhost ([127.0.0.1]:52698) in progress, fd=9
debug1: channel 1: new [::1]
debug1: confirm forwarded-tcpip
debug1: channel 1: connected to localhost port 52698
debug1: channel 1: free: ::1, nchannels 2
root@host:~# ls -l foo
-rw------- 1 root root 25408 2012-10-04 16:31 foo
root@host:~# ls -l foo
-rw------- 1 root root 63787 2012-10-04 16:30 foo
root@host:~# /usr/local/bin/rmate foo
debug1: client_input_channel_open: ctype forwarded-tcpip rchan 3 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen localhost port 52698, originator 127.0.0.1 port 39069
debug1: connect_next: host localhost ([127.0.0.1]:52698) in progress, fd=9
debug1: channel 1: new [127.0.0.1]
debug1: confirm forwarded-tcpip
debug1: channel 1: connected to localhost port 52698
debug1: channel 1: free: 127.0.0.1, nchannels 2
root@host:~# ls -l foo
-rw------- 1 root root 63787 2012-10-04 16:33 foo
Also seeing the same behaviour on CentOS 5.5, Bash 3.1, OpenSSH_4.3p2, OpenSSL 0.9.8b
Issue confirmed on Debian Squeeze, latest updates.
thanks ... so i've some systems to test with now. i am currently very busy, but i hope that i can look at it later this week.
just a short update: i was able to reproduce the problem and i think i have an idea, what is wrong. i'll have to do some more testing, though ...
Just noting that I have this issue also
Confirmed this fixes the problem for me. Thanks a lot!
I've again made a change to this for OS compatibility reasons ... i would be very happy, if those, who had the issue could fetch the latest update and try again ... thanks!
Just tested and this new version works for me (65Kb file)
Running Ubuntu Server 12.10 x86_64 3.5.0-17-generic
Just tested with a 70KB file and while it doesn't truncate it doesn't save buffer changes either
Works fine for me. Opens and saves changes no problem.
Ubuntu 10.04.4 LTS
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)