Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-04-08
03:48 • Closed ticket [219329ffff]: fcopy should not lock out I/O in *both* directions</... artifact: e01655262d user: andreas_kupries
03:44 • Ticket [219329ffff]: 4 changes artifact: 3091ac1c42 user: ferrieux
2001-09-20
06:31 • Ticket [219329ffff]: 4 changes artifact: 437ba20ce1 user: andreas_kupries
2001-08-25
01:23 • Ticket [219329ffff]: 1 change artifact: 1806d1746d user: andreas_kupries
2001-04-04
04:51 • Ticket [219329ffff]: 1 change artifact: ba933f88d9 user: dgp
2001-02-05
04:27 • Ticket [219329ffff]: 1 change artifact: 3dc1137cb6 user: dkf
2000-11-16
16:15 • Ticket [219329ffff]: 1 change artifact: d3ce0f3965 user: andreas_kupries
16:11 • Ticket [219329ffff]: 4 changes artifact: 6ff49d16de user: andreas_kupries
2000-10-26
05:10 • New ticket [219329ffff]. artifact: eff93788db user: nobody

fcopy should not lock out I/O in *both* directions

Closed / Duplicate219329ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 19 years ago
Descriptionplain2000-10-26 05:10:49
OriginalBugID: 4224 Bug
Version: 8.3
SubmitDate: '2000-02-22'
LastModified: '2000-02-22'
Severity: SER
Status: UnAssn
Submitter: welch
ChangedBy: welch
OS: All
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Currently fcopy prevents any other I/O on a channel.
However, if you are acting as a proxy, then you need to perform
two fcopy's in two different directions given a pair of sockets.
In short, if I am reading from sock7 and writing to sock8,
then I need to be able to write to sock7 and/or read from sock8 at
the same time (using fcopy or some other I/O operation)
andreas_kupriesplain2000-11-16 16:11:04
Posibilities to consider:
- Usage of 2 fileevents + read/write (possibly not very efficient, but a valid workaround)
- flag "-bidirectional" to fcopy to initiate transfer in both directions.
- Separate "fcopy2" command doing the bidirectional transfer
andreas_kupries Ticket [219329ffff]: 1 change [History diff]2000-11-16 16:15:15
dkf Ticket [219329ffff]: 1 change [History diff]2001-02-05 04:27:43
dgp Ticket [219329ffff]: 1 change [History diff]2001-04-04 04:51:58
andreas_kupries Ticket [219329ffff]: 1 change [History diff]2001-08-25 01:23:40
andreas_kupriesplain2001-09-20 06:31:32
Logged In: YES 
user_id=75003

The current main data structures used in fcopy are channel, 
ChannelState, and CopyState.

A CopyState refers to both channels it uses, in and out. 
The ChannelStates of these two channels refer back to the 
CopyState if there is one, thus implementing the currently 
used lock-out policy.

I see no big problem in having a ChannelState refering to 
two CopyState's, one "reader" and one "writer"; and thus to 
relax lock-out so that only the used directions of a 
channel cannot be used anywhere else.
ferrieuxplain2008-04-08 03:44:51
Logged In: YES 
user_id=496139
Originator: NO

Just digged that one, duplicated in Bug 1350564 .
Time to merge the two trackers, don't you think ;-)
I believe you can close this entry.
andreas_kupriesplain2008-04-08 03:48:32
Logged In: YES 
user_id=75003
Originator: NO

Closed as dup of 1350564.
Log in (anonymous is fine) to add a comment.