Giter Site home page Giter Site logo

berthad's Issues

`maried` does not recover from network hiccup

Traceback from maried after a short DNS hiccup:

Traceback (most recent call last):
  File "/home/maried/py/maried/gstreamer.py", line 302, in _on_about_to_finish
    self.on_about_to_finish()
  File "/home/maried/py/sarah/event.py", line 8, in __call__
    handler(*args, **kwargs)
  File "/home/maried/py/maried/core.py", line 376, in _player_on_about_to_finish
    self._queue_next()
  File "/home/maried/py/maried/core.py", line 324, in _queue_next
    self.player.queue(media)
  File "/home/maried/py/maried/gstreamer.py", line 230, in queue
    stream = mf.open()
  File "/home/maried/py/maried/_bertha.py", line 13, in open
    return self.store._open(self.key)
  File "/home/maried/py/maried/_bertha.py", line 59, in _open
    return self.c.get(key)
  File "/home/maried/py/bertha/client.py", line 142, in get
    sock = self._connect()
  File "/home/maried/py/bertha/client.py", line 205, in _connect
    socket.SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

berthad gives back an error because the DNS service is unreachable, but maried does not retry to retrieve the file.

FreeBSD: Neither sendfile() nor select() triggers diskio

sendfile() does not read from the disk and returns EBUSY when the data is not cached. Select() was supposed to flag it as ready when the data became available but it flags it as such even when the data is not yet buffered, so sendfile returns EBUSY.

There should be something that triggers the kernel to actually read from the disk, preferrably in a nonblocking fashion but otherwise in another thread.

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.