Descriptionnet: separate pollster initialization from network file descriptor allocation
Unlike the existing net package own pollster, runtime-integrated
network pollster on BSD variants, actually kqueue, requires a socket
that has beed passed to syscall.Listen previously for a stream
listener.
This CL separates pollDesc.Init (actually runtime_pollOpen) from newFD
to allow control of each state of sockets and adds init method to netFD
instead. Upcoming CLs will rearrange the call order of runtime-integrated
pollster and syscall functions like the following;
- For dialers that open active connections, runtime_pollOpen will be
called in between syscall.Bind and syscall.Connect.
- For stream listeners that open passive stream connections,
runtime_pollOpen will be called just after syscall.Listen.
- For datagram listeners that open datagram connections,
runtime_pollOpen will be called just after syscall.Bind.
This is in preparation for runtime-integrated network pollster for BSD
variants.
Update issue 5199
Patch Set 1 : diff -r d99e8966136e https://code.google.com/p/go #Patch Set 2 : diff -r 5af92313c1b8 https://code.google.com/p/go #Patch Set 3 : diff -r adc2b4f10096 https://code.google.com/p/go #Patch Set 4 : diff -r 7500ec6996b7 https://code.google.com/p/go #Patch Set 5 : diff -r 7500ec6996b7 https://code.google.com/p/go #Patch Set 6 : diff -r edb46df3ae05 https://code.google.com/p/go #
MessagesTotal messages: 23
|