From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nemo Content-Type: text/plain; charset=us-ascii Message-Id: Date: Mon, 18 Feb 2013 20:04:27 +0100 To: "9fans@9fans.net" <9fans@9fans.net> Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Subject: Re: [9fans] two questions about go in Plan 9 Topicbox-Message-UUID: 19a39ec8-ead8-11e9-9d60-3106f5b1d025 yes. that was the problem. perhaps exporting hangup would be fine. or perhaps a close in a tcp stream should also interrupt the reader in plan9, if any. thanks On Feb 18, 2013, at 7:58 PM, akumar@mail.nanosouffle.net wrote: > In order to deal with Conn types, you're supposed to just > use the interface's functions. Unfortunately, Conn's > Close() simply closes the associated fd. I think in general, > this is fine. For the Listener, a Close() will do the hangup. > > I'm updating the net package implementation for Plan 9, > so new ideas are welcome in this phase. We can try to > export a Hangup() function for Plan 9 for the Conn type > (or for individual implementations of the type). > > On 18 February 2013 10:12, Francisco J Ballesteros wrote: >> I know, but, what's the std way to do that in go in plan 9? >> >> On Feb 18, 2013, at 7:07 PM, cinap_lenrek@gmx.de wrote: >> >>> network connections on plan9 can be hanged up by writing "hangup" into >>> the corresponding ctl file. >>> >>> -- >>> cinap >>> >>> [/mail/box/nemo/msgs/201302/897] > > [/mail/box/nemo/msgs/201302/902]