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
Treat 0 in addition to -1 as an infinite timeout for COPY operations #6351
After #6122 we no longer treat 0 as infinite timeout, and instead use -1 for the same purpose. While this is in line with other .NET API (like NetworkStream.ReadTimeout), both NetworkStream and Socket support setting 0 and also treat it as infinite timeout. In addition, setting timeout to 0 currently doesn't make much sense (since it just results in us immediately cancelling the operation). Plus, in this particular case we go against SqlClient (where 0 means infinite timeout).
Which is why it's probably better to relax the change, by also supporting 0 as infinite timeout. Given that we only change COPY operations specifically, this shouldn't be too invasive.
Activity
jurajpaska8 commentedon Dec 18, 2025
roji commentedon Dec 18, 2025
For COPY operations treat 0 as infinite timeout in addition to -1 (#6352
For COPY operations treat 0 as infinite timeout in addition to -1 (#6352