bug-myserver
[Top][All Lists]
Advanced

[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&#39;s really nice feature, unfortunately I 
> tried it yesterday 
> evening with default parameters and it didn&#39;t worked. There are about 20 
> SCTP options 
> so maybe it&#39;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&#39;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&#39;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&#39;ll send you the sources later today.

Ok, thanks.

Giuseppe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]