Coder Social home page Coder Social logo

inetd mode is broken about nbd HOT 3 CLOSED

networkblockdevice avatar networkblockdevice commented on June 16, 2024
inetd mode is broken

from nbd.

Comments (3)

yoe avatar yoe commented on June 16, 2024

I think it actually makes sense.

I don't see why you moved this from inside the "if (serve)" thing to outside, though. Care to comment?

Also, inetd mode has broken several times over the years, mainly because our test suite doesn't test for it. I'd be more inclined to accept a patch fixing it if it also extended the test suite to test for it. Otherwise it will just break again in the future, and that would be a waste of effort.

from nbd.

fstirlitz avatar fstirlitz commented on June 16, 2024

I think it actually makes sense.

...'it' being...?

I don't see why you moved this from inside the "if (serve)" thing to outside, though. Care to comment?

mainloop_threaded working depends on tpool being set up, while negotiation probably depends on GnuTLS being initialised (I have only skimmed the code); both things are done further down in main. I didn't want to duplicate any initialisation code; just moving this block down seemed like the simplest way to fix this.

I'd be more inclined to accept a patch fixing it if it also extended the test suite to test for it.

Okay. Do you think it should be done by extending nbd-tester-client to launch nbd-server by itself, writing a stub inetd-like program, or adding a dependency on inetd/ncat/socat?

from nbd.

yoe avatar yoe commented on June 16, 2024

from nbd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.