From: Bernhard Brodowsky Date: 2012-09-05T04:19:35+09:00 Subject: Re: Socket Decorator Bernhard Brodowsky wrote in post #1074683: > I still need to figure out some things, for example > your code heavily relies on the exceptions I throw and I have to figure > out which ones I have to throw in which occasions such that all things > like blocking and non-blocking reads work properly and what I have to do > to end the connection suddenly without your code catching it and I will > have to watch out if there are occasions where a call to > unbuffered_read() blocks because not enough data is available where it > should not or should throw an exception instead. Ok, I found out everything I wanted to now is in the comment of the module itself and it works now, so thanks a lot. But I have one little flaw report: In your LikeStringIO example, you didn't define duplexed? to return true. -- Posted via http://www.ruby-forum.com/.