/[meteor]/trunk/meteord.conf.dist
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/meteord.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (hide annotations)
Thu Nov 27 00:33:21 2008 UTC (15 years, 4 months ago) by andrew.betts
Original Path: googlecode.com/svn/trunk/meteord.conf.dist
File size: 3464 byte(s)
1 Fixed: Added SIGPIPE handler.  We noticed that under heavy load
Meteor receives SIGPIPEs from the OS, suspected to relate to clients
that have just disconnected the moment Meteor attempts to write to the
socket.  This caused Meteor to crash.
2 Fixed: Long polling multiple channels no longer causes the loop to
die and restart when some channels have messages queued for delivery.
3 Fixed: Over time, Meteor 'collected' connections from clients that
never got disconnected even if MaxTime was set.  This happened if the
client concerned sent a header with no terminating blank line.  Meteor
kept waiting for the rest of the header, which never arrived, and
therefore the client remained in limbo, never subjected to the MaxTime
time limit because it had not yet become a subscriber.  Clients are
now allowed 30 seconds to send a valid request header.
4 Fixed: If only one message existed on the server, the JS client
would continue to request it again and again, because it has message
ID 0, and the JS client considered this an invalid message ID.
5 Fixed: Corrected some comments in file headers

6 Changed: MaxMessages has been renamed to CloseOnEvent and functions
in a similar, but not quite identical way.  Thanks to Matthew Haak,
who pointed out the extreme confusingness of MaxMessages and a bug
that has resulted in Fix 2 above.  Setting CloseOnEvent to any value
that evaluates to true will cause Meteor to close subscriber
connections after at least one message has been sent and there are no
further messages pending.  This is identical to MaxMessages for values
of 0 and 1, but where MaxMessages is set to a value higher than one,
replacing it with CloseOnEvent with the same value will act as though
it were set to one.  The intent of MaxMessages was to enable long-
polling (and it is used by the JS client in that way), and
CloseonEvent is a drop in replacement for that behaviour.
7 Changed: Meteor JS client now uses dynamic <SCRIPT> tags for all
polling behaviours, rather than XHR.  This enables it to make poll
requests cross-domain (see 13)
8 Changed: Meteor JS client now abstracts timestamp lookups to a
dedicated method.
9 Changed: Default HeaderTemplates no longer include cache busting
headers, since all meteor requests contain a millisecond timestamp and
so no client makes the same request twice.  These were therefore
simply chewing up bandwidth.
10 Changed: Date strings used for logging debug messages are cached to
avoid numerous expensive lookups to localtime().
11 Changed: Channel info is only sent in a response if the client does
not request a restart from a specified ID.  The logic being that if
the client knows the ID they want to start from, they have already
made previous requests and have the channel information they need.
Bandwidth saving measure.

12 Added: JS client now has a Meteor.isSupportedBrowser() method,
which you can call to detemine whether Meteor will run in the user's
browser version.
13 Added: JS client can now use different hosts for polling and
streaming.  This is only really useful if your website is on a domain
that has a lot of cookies, and you don't want to send them in every
poll request.  Removing cookies from request headers can reduce the
size of the request significantly.  We find that with cookies included
Meteor poll requests are usually larger than the responses.  To use,
set Meteor.pollhost.  Meteor.pollhost can be any domain, while
Meteor.host must be a subdomain of your website hostname.
14 Added: Config file now supports new 'FooterTemplate' parameter, for
a string to send just before the connection to the subscriber is
closed.  This is in support of change 7.
15 Added: Better inline documentation for ChannelInfoTemplate config
parameter
16 Added: Log output includes connection IDs corresponding to the file
inode for each connection
17 Added: New controller command LISTCONNECTIONS, produces a newline
delimited list of all currently connected clients, and for each one
displaying "ConnectionID IPAddress ClientType [SubscriberID]"
18 Added: New controller command DESCRIBE, takes a ConnectionID as a
parameter, and outputs numerous statistics about that particular
client, including number of messages sent/received, user agent, IP
address, time connected, time remaining until MaxTime etc.
19 Added: New controller comment LISTSUBSCRIBERS, produces a newline
delimited list of all currently connected streaming subscribers, and
for each one displaying "SubscriberID IPAddress Starttime TimeLimit
TimeRemaining MessageCount UserAgent"
20 Added: SHOWSTATS command produces the following additional stats:
connection_count: total current connections, real_subscribers: total
of number of currently connected streaming subscribers plus the number
of unique polling connections seen in the last 60 seconds.
21 Added: STDERR outputs prior to every exit() for debugging purposes
22 Added: The UDP server is now considered stable, and is the best way
of broadcasting messages to lots of Meteor nodes simultaneously and
efficiently. 


1 andrew.betts 54 MaxTime 240
2 andrew.betts 51 PingInterval 3
3 andrew.betts 62 Debug 1
4 andrew.betts 20
5 andrew.betts 51 [iframe]
6 andrew.betts 62 HeaderTemplate HTTP/1.1 ~status~\r\nContent-Type: text/html; charset=utf-8\r\n\r\n<html><head><script type="text/javascript">\r\nwindow.onError = null;\r\nvar domainparts = document.domain.split(".");\r\ndocument.domain = domainparts[domainparts.length-2]+"."+domainparts[domainparts.length-1];\r\nparent.Meteor.register(this);\r\n</script>\r\n</head>\r\n<body onload="try { parent.Meteor.reset(this) } catch (e) {}">\r\n<!--..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................-->\r\n~channelinfo~\r\n
7     FooterTemplate </body></html>
8 andrew.betts 51 Persist 1
9 andrew.betts 20
10 andrew.betts 51 [xhrinteractive]
11 andrew.betts 62 HeaderTemplate HTTP/1.1 ~status~\r\n\r\n................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\r\n~channelinfo~\r\n
12 andrew.betts 51 Persist 1
13 andrew.betts 20
14 andrew.betts 51 [simplepoll]
15 andrew.betts 62 HeaderTemplate HTTP/1.1 ~status~\r\nContent-Type: text/html; charset=utf-8\r\n\r\n~channelinfo~
16     MessageTemplate Meteor.process(~id~,"~channel~","~text~");\r\n
17     ChannelInfoTemplate Meteor.channelInfo("~name~", ~lastMsgID~);\r\n
18     FooterTemplate Meteor.clearpoll();\r\n
19     PingMessage Meteor.process(-1);\r\n
20 andrew.betts 20
21 andrew.betts 51 [smartpoll]
22 andrew.betts 62 HeaderTemplate HTTP/1.1 ~status~\r\nContent-Type: text/html; charset=utf-8\r\n\r\n~channelinfo~
23     MessageTemplate Meteor.process(~id~,"~channel~","~text~");\r\n
24     ChannelInfoTemplate Meteor.channelInfo("~name~", ~lastMsgID~);\r\n
25     FooterTemplate Meteor.clearpoll();\r\n
26     PingMessage Meteor.process(-1);\r\n
27 andrew.betts 20
28 andrew.betts 51 [longpoll]
29 andrew.betts 62 HeaderTemplate HTTP/1.1 ~status~\r\nContent-Type: text/html; charset=utf-8\r\n\r\n~channelinfo~
30     MessageTemplate Meteor.process(~id~,"~channel~","~text~");\r\n
31     ChannelInfoTemplate Meteor.channelInfo("~name~", ~lastMsgID~);\r\n
32     FooterTemplate Meteor.clearpoll();\r\n
33     PingMessage Meteor.process(-1);\r\n
34 andrew.betts 51 Persist 1
35 andrew.betts 62 CloseOnEvent 1
36 andrew.betts 51
37     [flash]
38     HeaderTemplate ~channelinfo~
39     Persist 1
40     MessageTemplate ~id~/~channel~/~text~\0
41     PingMessage .\0
42     SubscriberShutdownMsg x\0
43     ChannelInfoTemplate CH/~name~/~lastMsgID~\0

  ViewVC Help
Powered by ViewVC 1.1.26