Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net.ReadFromUDP broken on windows release 2010-11-10 #1275

Closed
gopherbot opened this issue Nov 16, 2010 · 4 comments
Closed

net.ReadFromUDP broken on windows release 2010-11-10 #1275

gopherbot opened this issue Nov 16, 2010 · 4 comments

Comments

@gopherbot
Copy link

by theseeker:

Source of a simple UDP echo program attached.

What is the expected output?
It should sit and listen on the designated port, print packet size and content on screen
and echo them back to the sender - at least, that's what it's doing on linux.


What do you see instead?
On windows, the screen fills with zeros.  ReadFromUDP() is returning immediately without
error, but with rbytes == 0.  netstat shows that the program is listening on the port,
but nothing happens when I send data to it.


Which compiler are you using (5g, 6g, 8g, gccgo)?
8g


Which operating system are you using?
windows XP 64


Which revision are you using?  (hg identify)
gowin32 release 2010-11-10


Please provide any additional information below.
(*UDPConn).Read() works as expected, but I can not get the remote host info to send data
back using Read()

(*UDPConn).ReadFrom() is broken in the same manner as ReadFromUDP()

Attachments:

  1. udpecho.go (846 bytes)
@gopherbot
Copy link
Author

Comment 1 by theseeker:

Oops, it should only expect to 'print packet content' not 'print packet size and
content' to screen.  I forgot I removed that line while simplifying the code.

@alexbrainman
Copy link
Member

Comment 2:

It is not implemented yet.

Labels changed: added os-windows, packagebug.

Owner changed to @alexbrainman.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Nov 22, 2010

Comment 3:

This issue was closed by revision 95c341f.

Status changed to Fixed.

@gopherbot
Copy link
Author

Comment 4 by theseeker:

Verified working using Go release 2010-11-23, at least in the provided test case. 
Thanks!

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants