metaeducation / rebol-issues

6 stars 1 forks source link

cannot open TCP server port #1275

Open rebolbot opened 15 years ago

rebolbot commented 15 years ago

Submitted by: kcollins

decode-url parses the URL incorrectly. 
>> open tcp://:9000
** Access error: cannot connect: tcp://:9000 reason: 10013
** Where: open
** Near: open tcp://:9000

>> decode-url tcp://:9000
== [scheme: 'tcp path: ":9000"]

CC - Data [ Version: alpha 88 Type: Bug Platform: All Category: Ports Reproduce: Always Fixed-in:alpha 92 ]

rebolbot commented 15 years ago

Submitted by: BrianH

The parse rules are wrong - the domain-name is non-optional for some reason. Easy fix, should be done soon.

rebolbot commented 15 years ago

Submitted by: Carl

During this fix, I cleaned-up the decode-url code a bit to make it more readable.