[LON-CAPA-cvs] cvs: loncom / loncnew
raeburn
raeburn@source.lon-capa.org
Thu, 16 Jun 2011 07:18:53 -0000
raeburn Thu Jun 16 07:18:53 2011 EDT
Modified files:
/loncom loncnew
Log:
- Fix typos in documentation.
Index: loncom/loncnew
diff -u loncom/loncnew:1.96 loncom/loncnew:1.97
--- loncom/loncnew:1.96 Tue Jan 25 11:02:35 2011
+++ loncom/loncnew Thu Jun 16 07:18:53 2011
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# lonc maintains the connections to remote computers
#
-# $Id: loncnew,v 1.96 2011/01/25 11:02:35 foxr Exp $
+# $Id: loncnew,v 1.97 2011/06/16 07:18:53 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -26,7 +26,7 @@
# http://www.lon-capa.org/
#
#
-# new lonc handles n request out bver m connections to londs.
+# new lonc handles n request out over m connections to londs.
# This module is based on the Event class.
# Development iterations:
# - Setup basic event loop. (done)
@@ -349,7 +349,7 @@
=head2 Tick
-Invoked each timer tick.
+Invoked each timer tick.
=cut
@@ -488,8 +488,8 @@
Event callback for when a client socket is writable.
-This callback is established when a transaction reponse is
-avaiable from lond. The response is forwarded to the unix socket
+This callback is established when a transaction response is
+available from lond. The response is forwarded to the unix socket
as it becomes writable in this sub.
Parameters:
@@ -589,8 +589,8 @@
=item Socket
-Socket on which the lond transaction occured. This is a
-LondConnection. The data received is in the TransactionReply member.
+Socket on which the lond transaction occurred. This is a
+LondConnection. The data received are in the TransactionReply member.
=item Transaction
@@ -630,7 +630,7 @@
=item data
- The data to send to apached client.
+ The data to send to apache client.
=cut
@@ -743,7 +743,7 @@
=item Restart
-nonzero if we are allowed to create a new connection.
+non-zero if we are allowed to create a new connection.
=cut
@@ -787,7 +787,7 @@
=head3 State=Initialized
-We''re waiting for the challenge, this is a no-op until the
+We're waiting for the challenge, this is a no-op until the
state changes.
=head3 State=Challenged
@@ -797,7 +797,7 @@
=head3 State=ChallengeReplied
-The challenge has been replied to. The we are receiveing the
+The challenge has been replied to. Then we are receiving the
'ok' from the partner.
=head3 State=ReadingVersionString
@@ -823,9 +823,9 @@
=head3 State=Idle
The encryption key has been negotiated or we have finished
-reading data from the a transaction. If the callback data has
-a client as well as the socket iformation, then we are
-doing a transaction and the data received is relayed to the client
+reading data from the a transaction. If the callback data have
+a client as well as the socket nformation, then we are
+doing a transaction and the data received are relayed to the client
before the socket is put on the idle list.
=head3 State=SendingRequest
@@ -842,7 +842,7 @@
The parameter to this function are:
The event. Implicit in this is the watcher and its data. The data
-contains at least the lond connection object and, if a
+contain at least the lond connection object and, if a
transaction is in progress, the socket attached to the local client.
=cut
@@ -985,7 +985,7 @@
=head3 State = Connected
The connection is in the process of sending the 'init' hailing to the
-lond on the remote end. The connection object''s Writable member is
+lond on the remote end. The connection object's Writable member is
called. On error, ConnectionError is called to destroy the connection
and remove it from the ActiveConnections hash
@@ -1196,7 +1196,7 @@
=head2 MakeLondConnection
Create a new lond connection object, and start it towards its initial
-idleness. Once idle, it becomes elligible to receive transactions
+idleness. Once idle, it becomes eligible to receive transactions
from the work queue. If the work queue is not empty when the
connection is completed and becomes idle, it will dequeue an entry and
start off on it.
@@ -1247,7 +1247,7 @@
if($ConnectionCount == 1) { # First Connection:
QueueDelayed;
}
- Log("SUCESS", "Created connection ".$ConnectionCount
+ Log("SUCCESS", "Created connection ".$ConnectionCount
." to host ".GetServerHost());
return 1; # Return success.
}
@@ -1268,7 +1268,7 @@
=item $Client
-Connection to the client that is making this request We got the
+Connection to the client that is making this request. We got the
request from this socket, and when the request has been relayed to
lond and we get a reply back from lond it will get sent to this
socket.
@@ -1358,6 +1358,7 @@
=pod
=head2 ClientRequest
+
Callback that is called when data can be read from the UNIX domain
socket connecting us with an apache server process.
@@ -1457,7 +1458,7 @@
Callback that is called when a connection is received on the unix
socket for a new client of lonc. The callback is parameterized by the
event.. which is a-priori assumed to be an io event, and therefore has
-an fd member that is the Listener socket. We Accept the connection
+an fd member that is the Listener socket. We accept the connection
and register a new event on the readability of that socket:
=cut
@@ -1537,7 +1538,7 @@
Setup a lonc listener event. The event is called when the socket
becomes readable.. that corresponds to the receipt of a new
connection. The event handler established will accept the connection
-(creating a communcations channel), that int turn will establish
+(creating a communcations channel), that in turn will establish
another event handler to subess requests.
=head2 Parameters:
@@ -1677,8 +1678,8 @@
This sub implements a child process for a single lonc daemon.
Optional parameter:
- $socket - if provided, this is a socket already open for listen
- on the client socket. Otherwise, a new listen is set up.
+ $socket - if provided, this is a socket already open for listening
+ on the client socket. Otherwise, a new listener is set up.
=cut
@@ -2078,7 +2079,7 @@
=head1 CheckKids
Since kids do not die as easily in this implementation
-as the previous one, there is no need to restart the
+as the previous one, there is no need to restart the
dead ones (all dead kids get restarted when they die!!)
The only thing this function does is to pass USR1 to the
kids so that they report their status.
@@ -2148,7 +2149,7 @@
=head1 Restart
Signal handler for HUP... all children are killed and
-we self restart. This is an el-cheapo way to re read
+we self restart. This is an el-cheapo way to re-read
the config file.
=cut
@@ -2294,7 +2295,7 @@
they are failed (saved if critical). If the connection
retry count gets exceeded by this, the
remote host is marked as dead.
-Called when timeouts occured during the connection and
+Called when timeouts occurred during the connection and
connection dialog with a remote host.
=item Critical Host makred DEAD <hostname>
@@ -2421,7 +2422,7 @@
=item INFO Updating connections via SIGUSR2
SIGUSR2 received. The original code would kill all clients, re-read the host file,
-then restart children for each host. Now that childrean aree started on demand, this
+then restart children for each host. Now that children are started on demand, this
just kills all child processes and lets requests start them as needed again.
@@ -2432,7 +2433,7 @@
=item CRITICAL Nicely killing lonc for host pid = <pid>
Attempting to kill the child that is serving the specified host (pid given) cleanly via
-SIGQUIT The child should handle that, clean up nicely and exit.
+SIGQUIT. The child should handle that, clean up nicely and exit.
=item CRITICAL Nastily killing lonc for host pid = <pid>