From: Ian Lance Taylor
- TODO: https://golang.org/cl/121055: restore 1.9 handling of missing/empty form-data file name
+ The handling of form-data with missing/empty file names has been
+ restored to the behavior in Go 1.9: in the
+
@@ -581,7 +589,8 @@ for k := range m {
Form
for
+ the form-data part the value is available in
+ the Value
field rather than the File
+ field. In Go releases 1.10 through 1.10.3 a form-data part with
+ a missing/empty file name and a non-empty "Content-Type" field
+ was stored in the File
field. This change was a
+ mistake in 1.10 and has been reverted to the 1.9 behavior.
- TODO: https://golang.org/cl/76391: implement (*syscall.RawConn).Read/Write on Windows
+ The syscall.RawConn
Read
+ and Write
methods now work correctly on Windows.
@@ -593,7 +602,12 @@ for k := range m {
- TODO: https://golang.org/cl/108297: calling File leaves the socket in nonblocking mode
+ The TCPConn.File
,
+ UDPConn.File
,
+ UnixConn.File
,
+ and IPConn.File
+ methods no longer put the returned *os.File
into
+ blocking mode.
- TODO: https://golang.org/cl/100077: use poller when NewFile is called with a blocking descriptor.
+ When a non-blocking descriptor is passed
+ to NewFile
, the
+ resulting *File
will be kept in non-blocking
+ mode. This means that I/O for that *File
will use
+ the runtime poller rather than a separate thread, and that
+ the SetDeadline
+ methods will work.