[bug #17355] glusterfsd - all socket operations should be ensured not to block

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #17355] glusterfsd - all socket operations should be ensured not to block

Eric L.-2

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=17355>

                 Summary: glusterfsd - all socket operations should be
ensured not to block
                 Project: Gluster
            Submitted by: avati
            Submitted on: Monday 08/07/2006 at 12:52
                Category: GlusterFS
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Improper behaviour
                  Status: None
                 Privacy: Public
             Assigned to: amarts
             Open/Closed: Open
        Operating System: GNU/Linux

    _______________________________________________________

Details:

all read/write operations on sockets should be ensured not to block.
currently all read()s happen after poll(). But all write() (reply from fops)
happen without check, which can possibly lead to blocking indefinitely.

all socket operations should happen with a poll() check for both write and
read.

all FILE * operations should be changed and should use the transport api's
being added (tracked by #17354) which uses socket fd directly.

the non-blocking write may involve implementing a write queue which is
flushed after poll() indicates write-ready.

Over clogging of the write-queue should be ensured by not read()ing from a
socket which has N write-queue entries. (do not process requests from a
socket which has not accepted the previous replies)








    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=17355>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
Gluster-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/gluster-devel
Reply | Threaded
Open this post in threaded view
|

[bug #17355] glusterfsd - all socket operations should be ensured not to block

Eric L.-2

Update of bug #17355 (project gluster):

              Depends on:                         => bugs #17354            


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=17355>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
Gluster-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/gluster-devel