}
// Provide a valid IConnection in the Red5 object
final IGlobalScope global = getGlobalScope(req);
final IContext context = global.getContext();
final IScope scope = context.resolveScope(global, packet.getScopePath());
conn = new RemotingConnection(req, scope, packet);
// Make sure the connection object isn't garbage collected
req.setAttribute(CONNECTION, conn);
// set thread local reference
Red5.setConnectionLocal(conn);
//fixed so that true is not returned for calls that have failed