Based on my experience this is really just random. The transform output is being sent to a splitter which sends data to the cache and the client. Both of these can generate upstream events and which you get precisely depends on they drain out relative to each other. This in turn depends on disk writes and network flows. You should be able to write your code so that it is not critical what exact set of events you get as long as you get something.
Wednesday, January 16, 2013, 11:35:50 AM, you wrote: > Hi All, > I am trying to do a plugin cache write during response transformation. > After I read the read the data and do the data transformation, I perform the > cache write. > > However, in the event VCONN_WRITE_COMPLETE, I try to close the output vconn. > I also close the transform vconn as showed in the null transform example. > However I get sometimes only one event TS_EVENT_IMMEDIATE based on > TSVConnClose call. > At other times I get two events.
