<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/104120/">http://git.reviewboard.kde.org/r/104120/</a>
     </td>
    </tr>
   </table>
   <br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On March 5th, 2012, 3:19 p.m., <b>David Faure</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Looks good to me, thanks for this long-due fix.

I don't know how well the underlying feature works (e.g. will the jobs wait for a connection or fail immediately, and will getConnectedSlave return 0 when the limit is reached) -- but this patch looks ok, it's just "more (configurability) of the same (feature)".</pre>
 </blockquote>







</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">The jobs will be queued and they will wait until an ioslave becomes available to service them. For example, if you set the number of connections allowed to a ftp server to "1" and attempt to download two files, the requests will be handled one at a time. That is the download of the second file will not begin until the first download is either canceled or done.</pre>
<br />








<p>- Dawit</p>


<br />
<p>On March 3rd, 2012, 5:48 p.m., Dawit Alemayehu wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for kdelibs and Andreas Hartmetz.</div>
<div>By Dawit Alemayehu.</div>


<p style="color: grey;"><i>Updated March 3, 2012, 5:48 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This patch is an alternate approach to making the number of ioslaves connections allowed per server configurable by the user. Unlike the patch proposed in bug# 64647, the approach taken in this patch neither requires any new API additions to KIO::Scheduler nor does it limit configurablity per protocol.

For restricting the number of ioslaves per server/host all a user would have to do is add a "MaxInstancesPerHost" property to the specific protocols configuration file. For example, to limit the number of ftp connections to "ftp://ftp.foo.bar" to 1, one would only have to add the following to $KDEHOME/share/config/kio_ftprc:

[ftp.foo.bar]
MaxInstancesPerHost=1

But that is not all. The user can make that restriction apply globally to all ftp connections by simply moving property to the global section of of the configuration file. That is move it out of the host ("[ftp.foo.bar]") section. And to make it apply to every protocol, simply move the property to the generic ioslave configuration file, $KDEHOME/share/config/kioslaverc.</pre>
  </td>
 </tr>
</table>




<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="http://bugs.kde.org/show_bug.cgi?id=64647">64647</a>


</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>kio/kio/scheduler.cpp <span style="color: grey">(6b4ed52)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/104120/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>