You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Receiver call silently misdispatches to another type same-named method #620
With this in src/stdlib/net/socket.kex (file level, inside module Net.Socket):
make TCP.TCPConnection do
foul getLine -> Result<String?, NetError> do
match TCP.receiveLine(this, 65536) do
Ok(bytes) => Ok(bytes.to(String))
Error(e) => e.kind == Closed then Ok(None) else Error(e)
end
end
end
a loopback probe calling conn.getLine (conn: TCPConnection) does NOT call it: it dispatches to FileHandle.getLine and fails with {kex_try_error,'ReadFailed'} (ReadFailed is a file error). -C is clean; the checker picks the wrong method.
Same root as the Client.get note in spec/net_http_roundtrip_beam.kex (make-block methods of a using-imported module are not in the receiver-function interface), but silent: instead of erroring, the call runs another type's method. Found while adding filehandle-style getLine/printLine to TCP; worked around with bare first-arg functions, which dispatch correctly.
Activity
Adapt to FS effects returning Result, and build headers with Headers.…