Menu

#61 Support for non-HTTP drivers for AOLserver 4

open
None
5
2004-07-29
2004-06-15
Stephen
No

Vlad Seryakov's patch #726288 hasn't been accepted
(yet) into AOLserver. How about a minimally invasive
patch that allows socket driver modules to dummy up
HTTP requests from arbitrary protocols, as suggested on
the mailing list by Jim Davidson?

The main stumbling point here is that unlike HTTP, some
protocols require the server to speak first after the
client connects, to e.g. present a login banner.

I am attaching a patch that adds a new option,
NS_DRIVER_WRITE_FIRST, which socket drivers can OR into
drvPtr->opts. Drivers which do so will then have their
DriverSend function called with 0 as the tosend arg,
when a connection is first made.

With this small patch I've been able to create an
example POP3 -> HTTP protocol mangler...

Discussion

<< < 1 2 (Page 2 of 2)
  • Andrew Piskorski

    Logged In: YES
    user_id=43168

    Has this functionality gone into the Head yet?

     
  • Andrew Piskorski

    Logged In: YES
    user_id=43168

    Dossy has stated that he personally doesn't like this
    implementation, but that if somone else with CVS commit is
    willing to sign on to maintain it, he is ok with that person
    commiting this code.

     
  • Dossy Shiobara

    Dossy Shiobara - 2004-11-19

    Logged In: YES
    user_id=21885

    You left out the important caveat: whoever commits it must
    also agree to fix anything that this implementation breaks.
    Basically, be wholly responsible for the effects of
    committing this particular implementation.

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.