Comments (4)
After some debugging I found out that the file.Read call returns correcty an
EOF error, but my client doesn't return because it's blocked on "defer
file.Close()".
I believe it's a bug and that file.Close() should be able to complete also in
this circumstance.
Original comment by [email protected]
on 31 May 2011 at 2:21
from go9p.
So basically what happens is that after a connection is broken every next
attempt to send rpc messages will block.
This happens because the "Send" goroutine exits without closing his acceptor
channel:
func (clnt *Clnt) send() {
for {
select {
case <-clnt.done:
return
...
Attaching a patch.
Original comment by [email protected]
on 31 May 2011 at 3:07
from go9p.
Original comment by [email protected]
on 31 May 2011 at 3:08
Attachments:
from go9p.
Thanks for catching this.
I think there is much simpler fix, just pushed it. Can you please check if it
fixes the bug for you?
Thanks,
Lucho
Original comment by [email protected]
on 31 May 2011 at 7:56
- Changed state: Fixed
from go9p.
Related Issues (20)
- examples not working after implementing io.Reader/io.Writer HOT 1
- io.Copy: i/o count too large HOT 2
- ls.go Error "" HOT 3
- stats_http.go files built on default HOT 1
- Unregistreing a http handler HOT 1
- clonefs example: O_TRUNC not permitted HOT 1
- No unit tests HOT 1
- http package breaks multiple clients in one program HOT 5
- merge with russ and rob's code.google.com/p/goplan9?
- go9p does not compile on Plan 9 HOT 5
- Return value of FOpenOp.Open is ignored HOT 2
- No API to close the socket associated with a server HOT 2
- add dirread9p to srv
- add FWalk1Op and Clone interfaces for srv
- Unpack should uncondititionally initialize fc.Unamenum HOT 1
- Attaching using username instead of uid fails HOT 2
- no way to construct a File from a Fid HOT 3
- set Iounit when allocating auth fids HOT 1
- no seek method on clnt.File HOT 2
- After fixing issue 30 (user lookup) attach in dotu mode no longer works - patch proposed HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go9p.