[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughpu
From: |
Giuseppe Scrivano |
Subject: |
Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability |
Date: |
Tue, 14 Apr 2009 15:05:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Alexandru Iancu <address@hidden> writes:
> I hope it may use this because it's really nice feature, unfortunately I
> tried it yesterday
> evening with default parameters and it didn't worked. There are about 20
> SCTP options
> so maybe it'll work with little bit of tuning ... neither did I looked
> into kernel sources
> to have a hint about what option to use to make it work. Actually I never did
> this ...
The problem is that sendfile needs a file descriptor to use a the
destination socket. I don't know if it is possible to use a different
descriptor for a specific stream in the SCTP connection.
> Unlike HTTP, FTP transfers also big files so the spec. requires the server to
> cancel ongoing
> download/upload. I don't know how to stop a sendfile API? May I register
> a callback that OS
> checks from time to time to stop a sending file?
The only solution is to `close ()' the socket of the transfer
connection. It will not be a valid descriptor and sendfile will return
an error.
> I agree, I also would like to have them both. Again, maybe it's an socket
> option problem or a stupid bug in my code :)
> I tryed to focus on SCTP with 2 applications: a "server" listening on
> a one-to-many socket and a multiple threads client connecting on a
> one-to-one socket. Before you need to install a kernel loadable
> module(lksctp). I'll send you the sources later today.
Ok, thanks.
Giuseppe
- [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Alexandru IANCU, 2009/04/08
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Giuseppe Scrivano, 2009/04/10
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Alexandru IANCU, 2009/04/11
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Giuseppe Scrivano, 2009/04/11
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Alexandru IANCU, 2009/04/13
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Giuseppe Scrivano, 2009/04/13
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Alexandru Iancu, 2009/04/14
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Giuseppe Scrivano, 2009/04/14
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Alexandru Iancu, 2009/04/14
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability,
Giuseppe Scrivano <=
- Re: [bug-myserver] task #9307: Propose to improve GNU MyServer Throughput and Reliability, Alexandru IANCU, 2009/04/18