Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
net.Conn.Read() joins multiple net.Conn.Write()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave Cheney  
View profile  
 More options Sep 11 2012, 8:57 pm
From: Dave Cheney <d...@cheney.net>
Date: Wed, 12 Sep 2012 10:57:23 +1000
Local: Tues, Sep 11 2012 8:57 pm
Subject: Re: [go-nuts] net.Conn.Read() joins multiple net.Conn.Write()
TCP is a stream oriented protocol, you need to add your own framing on
top of it. Think of a *net.TCPConn like a file. How would you separate
different entries while reading from that file.

There is also a trivial connection leak in your echoserver, you should
add a defer to close the conn in connhandler().

Cheers

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »