Complete.Org: Mailing Lists: Archives: gopher: March 2002:
[gopher] Re: \n.\n
Home

[gopher] Re: \n.\n

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: gopher@xxxxxxxxxxxx
Subject: [gopher] Re: \n.\n
From: Ralph Furmaniak <sugaku@xxxxxxxxxxxx>
Date: Wed, 20 Mar 2002 17:00:17 -0500
Reply-to: gopher@xxxxxxxxxxxx

> I don't know much about server design and certainly about this
> implementation (yet), but I do understand that the gopher0 and + spec
> indicated that the reason for \n.\n is to indicate EOF.

The server always closes the connection after sending the final \n.\n, so
it is not difficult for a client to determine when the file is finished.  I
am not sure if all clients are actually smart enough to see this, but it
shouldn't be a big problem.

The problem is that there will still be some old servers and clients (ie:
web browsers) running.  Clients will still need to be able to strip away
the final \n.\n from some servers (providing the server then closes the
connection), and if files end with \n.\n the server will have to add
another \n.\n because of this.
Unless we want to finally break the backwards-compatability for web
browsers and older clients, servers will still need to perform their magic
when \n.\n appears in the file.  Clients will then have to demagic it.

This problem only holds with gopher0, though.  Gopher+ already has a way to
circumvent this, as will anything else we develop.



[Prev in Thread] Current Thread [Next in Thread]