]> granicus.if.org Git - apache/commitdiff
reverted late connection creation after encountering concurrency issues on ubuntu
authorStefan Eissing <icing@apache.org>
Tue, 18 Aug 2015 15:03:37 +0000 (15:03 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 18 Aug 2015 15:03:37 +0000 (15:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696442 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_mplx.c

index a9727b0508105d55ca82526d73566d3aafdf0a73..db460bd5281af12ba40af898dfdf5ceb527c3a7d 100644 (file)
@@ -765,10 +765,6 @@ h2_task *h2_mplx_pop_task(h2_mplx *m, int *has_more)
     if (APR_SUCCESS == status) {
         task = h2_tq_pop_first(m->q);
         if (task) {
-            h2_io *io = h2_io_set_get(m->stream_ios, task->stream_id);
-            if (io) {
-                task->c = h2_conn_create(m->c, io->pool);
-            }
             h2_task_set_started(task);
         }
         *has_more = !h2_tq_empty(m->q);
@@ -786,8 +782,9 @@ apr_status_t h2_mplx_create_task(h2_mplx *m, struct h2_stream *stream)
     }
     status = apr_thread_mutex_lock(m->lock);
     if (APR_SUCCESS == status) {
+        conn_rec *c = h2_conn_create(m->c, stream->pool);
         stream->task = h2_task_create(m->id, stream->id, 
-                                      stream->pool, m, NULL);
+                                      stream->pool, m, c);
         
         apr_thread_mutex_unlock(m->lock);
     }