Re: ksh history corruption

2011-09-01 Thread LEVAI Daniel
On Wed, Aug 31, 2011 at 14:42:26 -0500, Marco Peereboom wrote: Version 4 fixes all reported bugs. Some folks have expressed doubt about the simplistic way of updating the history file. Specifically the rewriting of all entries. I am sensitive to that and know a couple of optimizations that

relayd session timeout

2011-09-01 Thread Alexander Bluhm
Hi, The relayd used the CHECK_TIMEOUT for connect and ssl handshake. This is 200 milliseconds and too short. Instead use the 600 seconds session timeout that is used for accepted sessions everywhere else. While there, make flag handling in relay_ssl_transaction() consistent to the other

Re: ksh history corruption

2011-09-01 Thread Marco Peereboom
todd had his panties in a wad about backwards compatibility so I lifted the ksh history load code out of ksh to dump it in a text file. Compile like: cc kshconv.c -o kshconv then run it like: ./kshconv -i ~/.hist -o texthist Conversion code: === 8

relayd close before connect

2011-09-01 Thread Alexander Bluhm
Hi, Especially with SSL and short data transfers, it could happen that the client closed before the connection to the server has been established. Then the relay closed immediately before transferring any data. The solution is to delay the close until the other side has an event buffer. ok?

Re: ksh history corruption

2011-09-01 Thread Marco Peereboom
Alright this diff keeps the file open and appends lines to HISTFILE. It only rewrites HISTFILE at 125% of HISTSIZE. Does fancy locking and deals with signals too. So unless someone finds some bugs I'll consider this version final. Yes, no on moving ksh history to text? Other comments? Index:

arp(8) verb omission

2011-09-01 Thread Brynet
Index: arp.8 === RCS file: /cvs/src/usr.sbin/arp/arp.8,v retrieving revision 1.29 diff -u -p -u -r1.29 arp.8 --- src/usr.sbin/arp/arp.8 13 Mar 2011 21:24:20 - 1.29 +++ src/usr.sbin/arp/arp.8 1 Sep 2011 20:38:31

Re: arp(8) verb omission

2011-09-01 Thread Jason McIntyre
On Thu, Sep 01, 2011 at 04:46:54PM -0400, Brynet wrote: Index: arp.8 === RCS file: /cvs/src/usr.sbin/arp/arp.8,v retrieving revision 1.29 diff -u -p -u -r1.29 arp.8 --- src/usr.sbin/arp/arp.813 Mar 2011 21:24:20 -

Re: ksh history corruption

2011-09-01 Thread Amit Kulkarni
FWIW, I like this... makes it better for me to atleast grab some stuff and copy over ***if*** it corrupts again. thanks On Thu, Sep 1, 2011 at 3:22 PM, Marco Peereboom sl...@peereboom.us wrote: Alright this diff keeps the file open and appends lines to HISTFILE. It only rewrites HISTFILE at

ksh wish

2011-09-01 Thread Damien Miller
Hi, While people are excited about hacking on ksh(1) - let me add my wish: unrestricted multibyte character binding so I can have ctrl-left_arrow (^[[1;5D on my terminal) bound to backward-word and so forth. Last time I checked the code for bind could only handle a couple of characters after ^[