Article View: news.software.nntp
Article #26159Need programmers for IRIX, Solaris, linux, BSDI to test file descriptor passing for Diablo 1.15's reader daemon
From: Matt Dillon
Date: Thu, 12 Feb 1998 00:00
Date: Thu, 12 Feb 1998 00:00
101 lines
4385 bytes
4385 bytes
Subject says it all. I need programmers who understand file descriptor
passing to test my file descriptor passing code in the reader portion of
the new diablo.
I need test/programming work done for solaris, irix, BSDI, linux, and
other non-FreeBSD OS's (does linux even have file descriptor passing?
It must!). Then I need the appropriate context diffs back for the various
architectures.
I have it working on FreeBSD, of course, but file descriptor passing
is quirky at best and the code is almost certain not to be compatible
across UNIXes.
THE URL I GIVE BELOW DOES NOT POINT TO A WORKING DIABLO! DO NOT RETRIEVE
IT UNLESS YOU WANT TO HELP WITH THE FILE DESCRIPTOR PASSING CODE!
---
Testing the file descriptor passing portion of dreaderd involves compiling
up the test distribution (NOT on your news machine!). You may hit
compilation errors with the messaging code which you will have to fix.
Then create a basic diablo directory structure as per normal, then:
cp samples/dactive.kp /news
cp samples/dreader.hosts /news
Then run:
dbin/dreaderd -d -p test
If the file descriptor passing code is working correctly, you should see
the following output:
(xterm #1)
apollo:/news# dbin/dreaderd -d -p test -D2 -M4
forked reader child process 1713
forked reader child process 1714
forked reader child process 1715
forked reader child process 1716
forked dns child process 1717
forked dns child process 1718
(pauses)
Then in (xterm #2):
apollo:/news# telnet localhost nntp
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
200 apollo.backplane.com Diablo NNRP Server ready (posting ok).
(pauses)
(xterm #1) should generate the following debug info:
Pass file descriptor fd=11
dreaderd[1792]: connect from 127.0.0.1 (127.0.0.1)
add thread fd=5
If it disconnects immediately, the file descriptor passing is not
working. If you don't get the banner, the file descriptor passing
is not working. If you get the connection, try the 'date' command:
(xterm #2)
date (type this)
111 19980213062818
(xterm #1)
server command: date
This is where I need help: If it doesn't work on other platforms, I
someone to track down the problem and actually fix it, then send me
the diffs for that platform.
File descriptor passing has always been add-hoc on UNIX boxes. I fully
expect there to be major compatibility problems. But it's absolutely
KEY to making the system work efficiently. It not only allows me to
have one primary accept()or process which passes descriptors to
multi-threaded subprocesses, it also allows me to load balance the
subprocesses.
Ok, where is it?
http://www.backplane.com/diablo/diablo-1.15-test1.tgz
Remember, PROGRAMMERS ONLY! The reader code isn't working yet :-) ...
We are still a week and a half away. I've managed to get most of the
raw infrastructure in, with only remote-server article retrieval left.
The rest is all maintenance, logging, blah blah blah.
-Matt
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Technical Details
Message-ID:
<6c0pse$1sf$1@flea.best.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6br2ki$bh8$1@flea.best.net> <2MGE.3$Yg6.197532@news2.teleport.com> <6bvv08$pim@newsops.execpc.com> <uhPE.145$b%5.471477@ptah.visi.com>Show Full Headers
Complete Article Headers
Message-ID: <6c0pse$1sf$1@flea.best.net> Subject: Need programmers for IRIX, Solaris, linux, BSDI to test file descriptor passing for Diablo 1.15's reader daemon Date: Thu, 12 Feb 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <6br2ki$bh8$1@flea.best.net> <2MGE.3$Yg6.197532@news2.teleport.com> <6bvv08$pim@newsops.execpc.com> <uhPE.145$b%5.471477@ptah.visi.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 324676022 X-Trace: 887352014 18633 dillon 206.184.139.132 Organization: Best Internet Communications, Inc. - 650 964 BEST Newsgroups: news.software.nntp