-
Notifications
You must be signed in to change notification settings - Fork 42
In HTTPServer specification, Port:0
give error, should be Port:nil
for kernel assigned ports
#88
Comments
Based on discussions in #81
Helge:
|
Port:0
give error, should be Port:nil
for kernel assigned ports
Just to be clear as this is missing from this issue: I don't care that much whether 0 or nil. But neither should be used, but addresses (which then may have similar issues). |
I think we got down to staying with |
C programmers are used to using 0 for randomly assigned ports by bind, however I can see why having a 0 might be confusing to a Swift programmer, new to kernel programming. However, making 0 give errors can be confusing to the C programmer. In all, given the changes proposed in #89 , this issue probably won't get us very much, so I propose we close it. |
Closing based on the above discussions. |
Referencing relevant comment from #81 : |
Based on comments from @helje5:
Don't do port: 0, should raise an error.
Do port: nil for kernel assigned, or a real port
The text was updated successfully, but these errors were encountered: