File: DESIGN.krun

package info (click to toggle)
kde4libs 4%3A4.14.2-5%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 82,428 kB
  • ctags: 99,415
  • sloc: cpp: 761,864; xml: 12,344; ansic: 6,295; java: 4,060; perl: 2,938; yacc: 2,507; python: 1,207; sh: 1,179; ruby: 337; lex: 278; makefile: 29
file content (35 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

konq_run / krun should determine the mimetype by actually
getting the contents of the URL. It should then put the slave
on hold and tell the job-scheduler which request the
slave is currently handling. (Status: implemented in konq_run)

Now krun/konq_run should determine which client should process the 
result of the request.

* When the client belongs to the same process, no action needs to be
taken. When a new job is created for the request which is on hold the
existing slave will be re-used and the request resumed.
(Status: implemented)

* When the client is an external process, the on-hold-slave should be 
removed from the job-scheduler and should connect itself with
klauncher. This is hard because it must ensure that the external 
program does not request the slave before it has been transfered to
klauncher. (Status: to be done)

* When a slave is on hold but not used for a certain period of time, 
or, when another slave is put on hold, the slave should be killed.
(Status: almost done)

=====

The slave must emit "mimetype" during a GET before the first data is send.

It may wait with sending "mimetype" until it has enough data to 
determine the mimetype, but it should not pass any data along before it has
send the mimetype.

Currently only http _always_ sends a mimetype.