bashttpd icon indicating copy to clipboard operation
bashttpd copied to clipboard

Script should handle port listening

Open nomicode opened this issue 11 years ago • 2 comments

It would be easier to use if the script were able to listen to the port itself. This might require calling itself recursively. But the appropriate functionality can be switched with command line options.

nomicode avatar Sep 16 '12 15:09 nomicode

I think we should consider invoking socat within bashttpd. Socat has options for fork() after accept(), that we could potentially leverage to service more then one incoming request.

ghost avatar Sep 16 '12 16:09 ghost

Right. This is why I went with socat to begin with, the ability to fork(). If we can do that inside the script, let's do it :-)

avleen avatar Sep 16 '12 20:09 avleen